Function std::io::extensions::u64_to_be_bytesExperimental [-]  [+] [src]

pub fn u64_to_be_bytes<T, F>(n: u64, size: uint, f: F) -> T where F: FnOnce(&[u8]) -> T

Converts an 8-bit to 64-bit unsigned value to a big-endian byte representation of the given size. If the size is not big enough to represent the value, then the high-order bytes are truncated.

Arguments:

This function returns the value returned by the callback, for convenience.