Skip to main content

Module encode

Module encode 

Source
Expand description

Binary Tuple encoder: schema + values → compact byte representation.

Layout:

[schema_version: u16 LE]
[null_bitmap: ceil(N/8) bytes, bit=1 means NULL]
[fixed_fields: concatenated, zeroed when null]
[offset_table: (N_var + 1) × u32 LE]
[variable_data: concatenated variable-length bytes]

Structs§

TupleEncoder
Encodes rows into Binary Tuples according to a fixed schema.