pub fn write_le<T: Writeable>(v: &T, buffer: &mut [u8])
Expand description
write a number to stream as little-endian.
panics if buffer does not contain enough space.
use byte_io::*;
let mut buf = [0u8;8];
write_le(&1u64, &mut buf);
assert_eq!(buf, [1,0,0,0,0,0,0,0]);