pub fn write_u16<W: Write>(writer: &mut W, n: u16) -> Result<()>
Write a u16(little-endian) value to the writer.