Skip to content

Specification

GoblinBear edited this page Apr 11, 2019 · 5 revisions
beson    ::= content
content  ::=   "\x00" "\x00"                  null
             | "\x01" "\x00"                  false
             | "\x01" "\x01"                  true
             
             | "\x02" "\x00" int32            32-bit integer
             | "\x02" "\x01" int64            64-bit integer
             | "\x02" "\x02" int128           128-bit integer
             | "\x02" "\x04" int8             8-bit integer
             | "\x02" "\x05" int16            16-bit integer
             | "\x02" "\x06" int256           256-bit integer
             | "\x02" "\x07" int512           512-bit integer
             | "\x02" "\xFF" intvar           n-bit integer
             
             | "\x03" "\x00" uint32           32-bit unsigned integer
             | "\x03" "\x01" uint64           64-bit unsigned integer
             | "\x03" "\x02" uint128          128-bit unsigned integer
             | "\x03" "\x04" uint8            8-bit unsigned integer
             | "\x03" "\x05" uint16           16-bit unsigned integer
             | "\x03" "\x06" uint256          256-bit unsigned integer
             | "\x03" "\x07" uint512          512-bit unsigned integer
             | "\x03" "\xFF" uintvar          n-bit unsigned integer
             
             | "\x04" "\x00" float64          64-bit floating point value
             | "\x04" "\x01" float32          32-bit floating point value
             
             | "\x05" "\x00" string           utf8 string
             | "\x06" "\x00" array            array
             | "\x09" "\x00" map              map

             | "\x0E" "\x00" binary           Binary Data
Clone this wiki locally