From 606feb210a196634fa6aabf7b0b085423bf598d3 Mon Sep 17 00:00:00 2001 From: Andrey Tvorozhkov Date: Sat, 15 Jul 2023 16:41:01 +0600 Subject: [PATCH] Small fixes in TLB --- docs/develop/data-formats/tl-b-language.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/develop/data-formats/tl-b-language.mdx b/docs/develop/data-formats/tl-b-language.mdx index ec27fb54eb..b0c1b5a940 100644 --- a/docs/develop/data-formats/tl-b-language.mdx +++ b/docs/develop/data-formats/tl-b-language.mdx @@ -120,7 +120,8 @@ A.val = 1 All constructor names must be distinct and constructor tags for the same type must constitute a prefix code (otherwise the deserialization would not be unique); i.e. no tag can be a prefix of any other in same type. -Maximum number of constructors for one type is `64` +Maximum number of constructors per one type: `64` +Maximum bits for tag: `63` Binary example: @@ -157,7 +158,7 @@ class A: tags_names = ['example_a', 'example_b', 'example_c'] ``` -If you use `hex` tag, keep in mind that it will be serialized as 4 bits for each hex symbol. Maximum value is 32-bit +If you use `hex` tag, keep in mind that it will be serialized as 4 bits for each hex symbol. Maximum value is 63-bit unsigned integer. This means: ```tlb