Next: , Previous: , Up: KEKS   [Index]


Encoding

KEKS can store various primitive scalar types (strings, integers, ...) and container types (lists, maps, ...). Serialisation process is just emitting the TLV-like encoding for each item recursively.

Possible values for the tag:

dechexbinvlendescription
00000000000000EOC
00101000000010NIL
00202000000100FALSE
00303000000110TRUE
004040000010016HEXLET
[...]
00808000010000LIST
00909000010010MAP
0100A00001010
0110B000010118+~BLOB
0120C000011001+~+INT
0130D000011011+~-INT
[...]
01610000100002FLOAT16
01711000100014FLOAT32
01812000100108FLOAT64
019130001001116FLOAT128
020140001010032FLOAT256
[...]
02418000110008TAI64
025190001100112TAI64N
0261A0001101016TAI64NA
[...]
0754B0100101115MAGIC
[...]
1288010LLLLLL0BIN(len=0)
[...]
188BC1011110060BIN(len=60)
189BD101111011+~BIN(len of 8b)
190BE101111102+~BIN(len of 16b)
191BF101111118+~BIN(len of 64b)
192C011LLLLLL0STR(len=0)
[...]
252FC1111110060STR(len=60)
253FD111111011+~STR(len of 8b)
254FE111111102+~STR(len of 16b)
255FF111111118+~STR(len of 64b)
Encoding table:  
Primitives:  
HEXLET:  
Strings:  
Integers:  
Floats:  
TAI64:  
MAGIC:  
LIST:  
MAP:  
BLOB: