From 94dc040a3dcbc482b3cf0ea2f128418b8b96a815 Mon Sep 17 00:00:00 2001 From: Artemy Egorov Date: Wed, 7 Aug 2024 12:11:12 +0300 Subject: [PATCH] doc: update daletpack --- specification/daletpack.md | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/specification/daletpack.md b/specification/daletpack.md index 6647ad6..1f17a52 100644 --- a/specification/daletpack.md +++ b/specification/daletpack.md @@ -23,9 +23,9 @@ Mime type: `application/dalet-pack` ## Limitations -- a value of integer must be between 0 and 255 -- maximum byte size of a String object is (2^32) -- string must be encoded in UTF-8 +- a value of number must be between 0 and 255 and be integer +- maximum byte size of a text is (2^32) +- text must be encoded in UTF-8 - maximum number of elements of a tag array object is (2^32) ## Formats @@ -34,11 +34,11 @@ Mime type: `application/dalet-pack` | name | id | | ------------------------ | --- | -| str end | 0 | -| str | 1 | -| int | 2 | -| tag array | 3 | -| tag array end | 4 | +| text end | 0 | +| text | 1 | +| number | 2 | +| tags | 3 | +| tags end | 4 | | tag (id) | 5 | | tag (id, body) | 6 | | tag (id, argument) | 7 | @@ -65,17 +65,15 @@ variable number of objects stored in DaletPack format: X - unknown bit ``` -### Str format +### Text format ```txt - -str: +--------+=========+--------+ | 1 | utf-8 | 0 | +--------+=========+--------+ ``` -### Int format +### Number format ```txt +--------+----------+ @@ -83,10 +81,9 @@ str: +--------+----------+ ``` -### Tag array format +### Tags format ```txt -tag array: +--------+~~~~~~~~~~~~+------+ | 3 | elements | 4 | +--------+~~~~~~~~~~~~+------+