Skip to content

Commit

Permalink
Merge pull request #300 from tvorogme/patch-7
Browse files Browse the repository at this point in the history
Small fixes in TLB
  • Loading branch information
reveloper committed Jul 17, 2023
2 parents 2321dff + 606feb2 commit cf87af9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/develop/data-formats/tl-b-language.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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`

<b>Binary example:</b>

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cf87af9

Please sign in to comment.