doc: fix types, remove negative integer

This commit is contained in:
Artemy Egorov 2024-07-27 18:39:56 +03:00
parent ff48c28d1f
commit 3c8023f30d

View file

@ -4,20 +4,20 @@ DaletPack is an binary data format for Dalet, that is used for minimizing the si
All data must be compressed in [Zstandard](https://datatracker.ietf.org/doc/html/rfc8878) format. All data must be compressed in [Zstandard](https://datatracker.ietf.org/doc/html/rfc8878) format.
## Types (12) ## Types (16)
- **Null** (1) - **Null**
- **Integer** (1) - **Integer**
- **String** (6) - **String** (6)
- **Array** (3) - **Array** (5)
- **Tags** (3) - **Tags** (3)
- **Tag only with id** (1) - **Tag only with id**
- **Tag with id and body** (1) - **Tag with id and body**
- **Tag with id, body and argument** (1) - **Tag with id, body and argument**
## Limitations ## Limitations
- a value of integer (5 bits) must be between -15 and 15 - a value of integer (4 bits) must be between 0 and 15
- maximum byte size of a String object is (2^32)-1 - maximum byte size of a String object is (2^32)-1
- string must be encoded in UTF-8 - string must be encoded in UTF-8
- maximum number of elements of an Array object is (2^32)-1 - maximum number of elements of an Array object is (2^32)-1
@ -75,15 +75,9 @@ variable number of objects stored in DaletPack format:
### Integer format ### Integer format
```txt ```txt
Positive integer: +--------+------+
+--------+-------+ | 0001 | XXXX |
| 0001 | 0XXXX | +--------+------+
+--------+-------+
Negative integer:
+--------+-------+
| 0001 | 1XXXX |
+--------+-------+
``` ```
### String format ### String format