Binary constants for the BTOON wire format.
BTOON is the binary transport encoding of the TOON data model (see
Btoon). This module defines the byte-level constants: the envelope
magic/version, flag bits, value type tags and typed-array / schema
element type selectors.
Envelope
+------------------+
| Magic "BTON" | 4 bytes
+------------------+
| Version | 1 byte
+------------------+
| Flags | 1 byte
+------------------+
| Reserved | 2 bytes (MUST be zero)
+------------------+
| String Table | variable, zero-padded to a multiple of 8 bytes
+------------------+
| Schema | variable (only when the schema flag is set)
+------------------+
| Body | variable, 8-byte aligned
+------------------+Flags
bit0 (0x01) reserved
bit1 (0x02) schema included
bit2 (0x04) string table present
bit3 (0x08) session dictionary active
bit4 (0x10) no per-message string table
bit5 (0x20) schema ID is UInt16
bits6-7 reserved
Summary
Functions
Returns the type tag for a BTOON primitive value tag.
Functions
Returns the type tag for a BTOON primitive value tag.