Function std::old_io::extensions::u64_to_le_bytesUnstable [-] [+] [src]

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

Converts an 8-bit to 64-bit unsigned value to a little-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.