pub fn read_pod<T: AnyBitPattern>(
byte_block: &[u8],
offset: usize,
) -> Option<&T>
Expand description
Reads the raw part of the input byte_block, at the specified offset, as type T.
Returns None if offset
+ size_of::
Type T must be plain ol’ data to ensure no undefined behavior.