Function std::io::extensions::u64_to_le_bytes[src]

pub fn u64_to_le_bytes<T>(n: u64, size: uint, f: |v: &[u8]| -> T) -> 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.