pub fn read_pod<T>(data: &[u8], offset: usize) -> Result<T, ParseError>Expand description
Read a zerocopy-compatible struct from data at offset.
Returns a copy (not a reference) to handle unaligned data.
pub fn read_pod<T>(data: &[u8], offset: usize) -> Result<T, ParseError>Read a zerocopy-compatible struct from data at offset.
Returns a copy (not a reference) to handle unaligned data.