pub fn read_u32_le(input: &[u8]) -> Option<u32>Expand description
Reads a little-endian u32 from a byte slice.
Returns None if the slice doesn’t have enough bytes.
§Examples
use steam_vdf_parser::binary::read_u32_le;
let data = [0x01, 0x02, 0x03, 0x04];
assert_eq!(read_u32_le(&data), Some(0x04030201));
assert_eq!(read_u32_le(&[0x01, 0x02]), None);