1 unstable release
new 0.1.0 | May 1, 2025 |
---|
#110 in #document
94 downloads per month
7KB
141 lines
Key Binary Document
Key Binary Document, also as KeyBinDoc
, is an easy and flexible binary internet-transferable format, when binary data more than string data instead of JSON.
KeyBinDoc is hashmap-like, nullable and JavaScript-compatible, and these basic types are supported below:
- NUL(
0
) - as null, property name is specified but no value is setted. - NUMBER(
1
) - as unknown typed number stored as ascii,f64
is the first selection andi64
as the second. - FALSE(
2
) and TRUE(3
) - as bothbool
type. - BUFFER(
4
) - as&[u8]
. - STRING(
5
) - as UTF-8String
. - ARRAY(
6
) - as dynamic typed Array of KeyBinDoc items. - OBJECT(
7
) - as dynamic key-value Map of KeyBinDoc items.