copybook-record-io
Record-format dispatch for copybook-rs.
Overview
Provides a format-agnostic API for single-record I/O that dispatches to either fixed-length
(LRECL) or RDW (variable-length) framing. This crate bridges the dedicated framing microcrates
(copybook-fixed, copybook-rdw) behind a unified read_record / write_record interface.
Usage
use ;
use RecordFormat;
use Cursor;
// Write a fixed-length record
let mut output = Vecnew;
write_record.unwrap;
// Read it back
let mut input = new;
let record = read_record.unwrap;
assert_eq!;
Public API
read_record/write_record— Format-agnostic single-record I/O- Re-exports:
FixedRecordReader,FixedRecordWriter,RDWRecord,RDWRecordReader,RDWRecordWriter
License
AGPL-3.0-or-later