Function mz_repr::row::read_byte_array_extending_negative
source ยท unsafe fn read_byte_array_extending_negative<const N: usize>(
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 a negative N
-byte
twos complement integer by filling the remaining bits with 1.
SAFETY:
- length <= N
- offset + length <= data.len()