Skip to main content

read_u32_advance

Function read_u32_advance 

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

Read an unsigned integer that fits in a u32 at *off, advancing *off past it. Accepts positive fixint, uint8, uint16, uint32. Returns None for negative, signed-typed, oversized (uint64), or non-integer values.