Skip to main content

Module record

Module record 

Source
Expand description

Record-level binary decode/encode logic. Record framing facade.

copybook-codec owns operation-level fixed-vs-RDW dispatch. This module remains the stable public path for callers that used the earlier record facade; the implementation lives in crate::file::dispatch.

Re-exports§

pub use crate::file::dispatch::read_rdw_record;
pub use crate::file::dispatch::read_record;
pub use crate::file::dispatch::write_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.