Skip to main content

Module encode

Module encode 

Source
Expand description

Encoder: Schema + Value tree → message bytes.

Envelope: 24-byte header, optional inline canonical schema, padding to 8, then the payload arena. All offsets in the message are absolute u32 byte positions within the buffer. See the architecture docs.

Enums§

SchemaMode

Constants§

FLAG_INLINE_SCHEMA
HEADER_LEN
Envelope: magic(4) flags(2) reserved(2) schema_id(16) root_off(4) schema_len(4).
MESSAGE_MAGIC

Functions§

encode