Expand description
High-level record encode/decode workflows.
Modules§
- charset
- Character set conversion between EBCDIC codepages and UTF-8. Character set conversion utilities
- determinism
- Determinism validation for decode, encode, and round-trip operations. Determinism validation for COBOL copybook encoding and decoding operations.
- edited_
pic - Edited PIC (numeric editing) decode and encode support. Edited PIC (Phase E2 + E3) decode and encode support
- file
- Schema-aware file framing integration. Schema-aware file processing integration.
- iterator
- Streaming record iterator for file-level decoding. Record iterator for streaming access to decoded records
- lib_api
- Core library API: record decode/encode and file-level processing. Core decode / encode API for COBOL binary data.
- numeric
- Numeric field decoding and encoding (zoned decimal, packed decimal, binary).
- options
- Configuration types: codepage, record format, JSON modes, raw capture. Configuration option types owned by the codec runtime.
- record
- Record-level binary decode/encode logic. Record framing facade.
- runtime
- Codec-owned runtime support for scratch buffers, streaming, and workers. Codec-owned runtime support for bounded, reusable record processing.
- zoned_
overpunch - Zoned decimal overpunch character handling. Zoned decimal overpunch API.
Structs§
- Byte
Diff - Details about a byte difference found during determinism checking.
- Decode
Options - Options for decoding operations
- Determinism
Result - Result of a determinism check operation.
- Encode
Options - Options for encoding operations
- Parse
Codec Option Error - Error returned when a textual codec option is unsupported.
- Record
Failure - A single record that failed during a decode or encode run.
- Record
Iterator - RunSummary
- Summary of a processing run with comprehensive statistics.
- Small
Decimal - Small decimal structure for parsing/formatting without floats This avoids floating-point precision issues for financial data
- Zoned
Encoding Info - Comprehensive encoding detection result for zoned decimal fields
Enums§
- Codec
Option Kind - Codec option family whose textual value could not be parsed.
- Codepage
- Character encoding specification supported by copybook-rs.
- Determinism
Mode - Mode of determinism checking (decode-only, encode-only, or full round-trip).
- Float
Format - Floating-point binary format for COMP-1/COMP-2 fields.
- Json
Number Mode - JSON number representation mode
- RawMode
- Raw data capture mode
- Record
Format - Record format specification
- Unmappable
Policy - Policy for handling characters that have no mapping.
- Zoned
Encoding Format - Zoned decimal encoding format specification for round-trip fidelity.
Constants§
- JSON_
SCHEMA_ VERSION - Stable JSONL schema identifier for decoder output.
- MAX_
CAPTURED_ FAILURES - How many individual record failures a
RunSummaryretains.
Functions§
- check_
decode_ determinism - Check that decoding the same binary data twice produces identical JSON output.
- check_
encode_ determinism - Check that encoding the same JSON twice produces identical binary output.
- check_
round_ trip_ determinism - Check full round-trip determinism: decode->encode->decode.
- decode_
file_ to_ jsonl - Decode a file to JSONL format
- decode_
record - Decode one fixed-size COBOL record into the public JSON envelope.
- decode_
record_ with_ scratch - High-performance decode using reusable scratch buffers
- encode_
jsonl_ to_ file - Encode JSONL to binary file
- encode_
record - Encode JSON data to binary using the provided schema
- iter_
records - Convenience function to create a record iterator from any readable source
- iter_
records_ from_ file - Convenience function to create a record iterator from a file path