Expand description
Binary Protocol for high-performance row serialization.
Provides a compact binary encoding format for transferring row data.
When the wasm feature is enabled, includes zero-copy WASM bindings
for direct JS access to encoded buffers.
§Binary Format (Row-Major)
Header: 16 bytes
+----------+----------+------------+-------+
| row_count| row_stride| var_offset | flags |
| u32 | u32 | u32 | u32 |
+----------+----------+------------+-------+
Fixed Section (row-major):
Row 0: [null_mask: ceil(cols/8) bytes][col0][col1][col2]
Row 1: [null_mask][col0][col1][col2]
...
Variable Section:
[string bytes][bytes data][jsonb data]Modules§
- flags
- Header flags
Structs§
- Binary
Encoder - High-performance binary encoder
- Binary
Result - Binary result buffer returned from execBinary()
- Column
Layout - Layout information for a single column
- Schema
Layout - Pre-computed layout for binary encoding/decoding
- Schema
Layout Cache - Cache for SchemaLayout instances.
Enums§
- Binary
Data Type - Data type IDs for binary encoding
Constants§
- HEADER_
SIZE - Header size in bytes