Skip to main content

Module dispatch

Module dispatch 

Source
Expand description

Operation-level dispatch across fixed, RDW, and VB framing. Operation-level fixed/RDW dispatch for codec callers.

The framing crates own byte-level parsing and writing. This module owns the format choice used by codec operations and keeps the legacy single-record helpers available through crate::record.

Structs§

BdwHeader
Parsed BDW header (block length + reserved).
FixedRecordReader
Fixed record reader for processing fixed-length records.
FixedRecordWriter
Fixed record writer for writing fixed-length records.
RDWRecord
An RDW record with header and payload bytes.
RDWRecordReader
RDW (Record Descriptor Word) record reader for variable-length records.
RDWRecordWriter
RDW record writer for variable-length records.
VbBlockReader
Bounded VB block reader yielding framed records.
VbBlockWriter
Deterministic VB block writer packing records in order.
VbRecord
One record framed inside a VB block.

Constants§

BDW_HEADER_LEN
Size of a BDW (Block Descriptor Word) header in bytes.
BDW_MAX_BLOCK_LEN
Maximum VB block length in bytes, header included.
RDW_HEADER_LEN
Size of an RDW header in bytes.
VB_MAX_RECORD_LEN
Maximum RDW length inside a VB block, header included.

Functions§

read_rdw_record
Read one complete RDW record, preserving its header and reserved bytes.
read_record
Read one record using the selected framing format.
write_record
Write one record using the selected framing format.