pub fn read_u16_into<T>(
reader: &mut ZByteReader<T>,
buf: &mut [u16],
) -> Result<(), DecodeErrors>where
T: ZReaderTrait,
Expand description
Read buf.len()*2
data from the underlying u8
buffer and convert it into
u16, and store it into buf
§Arguments
- reader: A mutable reference to the underlying reader.
- buf: A mutable reference to a slice containing u16’s