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