Structs§
- Pool
Entry - Pool
Entry Ref - Zero-copy pool entry borrowing from the input buffer.
- Schema
Info - Schema info needed by the decoder: field types + has_timestamp flag.
- Wire
Type Id - Type ID as it appears on the wire (u16 in schema/event frame headers). Assigned sequentially by the encoder; the decoder reads them from the stream.
Enums§
Constants§
- HEADER_
SIZE - MAGIC
- MAX_
TIMESTAMP_ DELTA_ NS - Maximum nanosecond delta that fits in a u24 (3 bytes).
- TAG_
EVENT - TAG_
SCHEMA - TAG_
STRING_ POOL - TAG_
TIMESTAMP_ RESET - VERSION
Functions§
- decode_
frame - Decode a single frame starting at
data. Returns (Frame, bytes_consumed). - decode_
frame_ ref - Decode a single frame without allocating owned data for field values.
- decode_
header - decode_
u24_ le - Decode a 3-byte little-endian u24 from
data. ReturnsNoneif fewer than 3 bytes. - encode_
event - Encode an event frame. If
timestamp_delta_nsis Some, writes a u24 LE delta after the type_id (for schemas withhas_timestamp = true). - encode_
header - encode_
schema - encode_
string_ pool - encode_
u24_ le - Encode a u32 value as 3-byte little-endian (u24). Caller must ensure
value <= 0xFF_FFFF.