Skip to main content

try_be_u32

Function try_be_u32 

Source
pub fn try_be_u32(data: &[u8], off: usize) -> Option<u32>
Expand description

Read a u32 at off; None if out of range. Never panics. Use when 0 must be distinguished from absent/truncated.