mirror of
https://github.com/TxtDot/dalet.git
synced 2024-11-23 13:26:22 +03:00
doc: update daletpack
This commit is contained in:
parent
6a693821a9
commit
94dc040a3d
1 changed files with 11 additions and 14 deletions
|
@ -23,9 +23,9 @@ Mime type: `application/dalet-pack`
|
||||||
|
|
||||||
## Limitations
|
## Limitations
|
||||||
|
|
||||||
- a value of integer must be between 0 and 255
|
- a value of number must be between 0 and 255 and be integer
|
||||||
- maximum byte size of a String object is (2^32)
|
- maximum byte size of a text is (2^32)
|
||||||
- string must be encoded in UTF-8
|
- text must be encoded in UTF-8
|
||||||
- maximum number of elements of a tag array object is (2^32)
|
- maximum number of elements of a tag array object is (2^32)
|
||||||
|
|
||||||
## Formats
|
## Formats
|
||||||
|
@ -34,11 +34,11 @@ Mime type: `application/dalet-pack`
|
||||||
|
|
||||||
| name | id |
|
| name | id |
|
||||||
| ------------------------ | --- |
|
| ------------------------ | --- |
|
||||||
| str end | 0 |
|
| text end | 0 |
|
||||||
| str | 1 |
|
| text | 1 |
|
||||||
| int | 2 |
|
| number | 2 |
|
||||||
| tag array | 3 |
|
| tags | 3 |
|
||||||
| tag array end | 4 |
|
| tags end | 4 |
|
||||||
| tag (id) | 5 |
|
| tag (id) | 5 |
|
||||||
| tag (id, body) | 6 |
|
| tag (id, body) | 6 |
|
||||||
| tag (id, argument) | 7 |
|
| tag (id, argument) | 7 |
|
||||||
|
@ -65,17 +65,15 @@ variable number of objects stored in DaletPack format:
|
||||||
X - unknown bit
|
X - unknown bit
|
||||||
```
|
```
|
||||||
|
|
||||||
### Str format
|
### Text format
|
||||||
|
|
||||||
```txt
|
```txt
|
||||||
|
|
||||||
str:
|
|
||||||
+--------+=========+--------+
|
+--------+=========+--------+
|
||||||
| 1 | utf-8 | 0 |
|
| 1 | utf-8 | 0 |
|
||||||
+--------+=========+--------+
|
+--------+=========+--------+
|
||||||
```
|
```
|
||||||
|
|
||||||
### Int format
|
### Number format
|
||||||
|
|
||||||
```txt
|
```txt
|
||||||
+--------+----------+
|
+--------+----------+
|
||||||
|
@ -83,10 +81,9 @@ str:
|
||||||
+--------+----------+
|
+--------+----------+
|
||||||
```
|
```
|
||||||
|
|
||||||
### Tag array format
|
### Tags format
|
||||||
|
|
||||||
```txt
|
```txt
|
||||||
tag array:
|
|
||||||
+--------+~~~~~~~~~~~~+------+
|
+--------+~~~~~~~~~~~~+------+
|
||||||
| 3 | elements | 4 |
|
| 3 | elements | 4 |
|
||||||
+--------+~~~~~~~~~~~~+------+
|
+--------+~~~~~~~~~~~~+------+
|
||||||
|
|
Loading…
Add table
Reference in a new issue