Skip to main content

Crate copybook_corruption_predicates

Crate copybook_corruption_predicates 

Source
Expand description

Pure predicate helpers for transfer-corruption heuristics used by higher-level codec error reporting.

Functionsยง

is_ascii_printable
Return true for ASCII-printable bytes.
is_invalid_comp3_high_nibble
Detect whether a packed-decimal high nibble can never be part of COMP-3 payload.
is_invalid_comp3_low_nibble
Detect whether a packed-decimal non-terminal low nibble can never be part of COMP-3 payload.
is_invalid_comp3_sign_nibble
Detect whether a packed-decimal sign nibble (last low nibble) is invalid.
is_likely_corrupted_ebcdic_byte
Predicate for control/control-like bytes commonly seen in EBCDIC text.