Function tarrasque::be_u32 [] [src]

pub fn be_u32(bytes: &[u8]) -> u32

Returns the first four bytes in the supplied slice as a big-endian u32.

Example

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