unsafe fn read_byte_array_sign_extending<const N: usize, const FILL: u8>(
    data: &[u8],
    offset: &mut usize,
    length: usize
) -> [u8; N]
Expand description

Read length bytes from data at offset, updating the latter. Extend the resulting buffer to an array of N bytes by inserting FILL in the k most significant bytes, where k = N - length.

SAFETY:

  • length <= N
  • offset + length <= data.len()