Function tarrasque::le_i32 [] [src]

pub fn le_i32(bytes: &[u8]) -> i32

Returns the first four bytes in the supplied slice as a little-endian i32.

Example

let bytes = &[1, 2, 3, 4, 5, 6, 7, 8];
assert_eq!(le_i32(bytes), 0x04030201);