Skip to main content

check_flat_op_bytes_words

Function check_flat_op_bytes_words 

Source
pub fn check_flat_op_bytes_words(
    words: &[u32],
    pos: usize,
    max_bytes: usize,
) -> Result<(usize, usize, usize), FlatOpStrError>
Expand description

Validates the framing, length bound, bounds, and zero trailing padding of a word-padded byte block starting at words[pos], returning (payload_start, block_end, byte_len) on success.