Function tarrasque::be_u64

source ·
pub fn be_u64(bytes: &[u8]) -> u64
Expand description

Returns the first eight bytes in the supplied slice as a big-endian u64.

Example

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