pub fn le_u32(bytes: &[u8]) -> u32
Returns the first four bytes in the supplied slice as a little-endian u32.
u32
let bytes = &[1, 2, 3, 4, 5, 6, 7, 8]; assert_eq!(le_u32(bytes), 0x04030201);