Skip to main content

Crate copybook_rdw_predicates

Crate copybook_rdw_predicates 

Source
Expand description

RDW header ASCII-digit detection helper.

This crate owns exactly one predicate: whether RDW length bytes look like ASCII digits and therefore likely represent ASCII-transfer corruption.

Constants§

RDW_HEADER_LEN
RDW header size in bytes.

Functions§

rdw_is_suspect_ascii_corruption
Returns true if the first two RDW header bytes are ASCII digits, indicating likely ASCII-transfer corruption.
rdw_is_suspect_ascii_corruption_slice
Slice-based variant of rdw_is_suspect_ascii_corruption that checks at least 4 bytes.