Skip to main content

read_pod

Function read_pod 

Source
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.