Skip to main content

unshape_statement

Function unshape_statement 

Source
pub fn unshape_statement(segment: &str, data: &[u8]) -> Option<Vec<u8>>
Available on crate feature trace only.
Expand description

The binary data of a recorded answer segment made valid again, if the segment holds a shape-masked statement (HIKAZ: MT940, HICAZ: camt.052, HIWPD/HIWDU: MT535/536): each # becomes 1 in an amount and X in text, read with the same field rules as the mask, so the result has the bank’s layout. None for other segments.