pub fn write_i16<T>( stream: &mut dyn Write, value: T) -> Result<usize, StatusCode> where T: Into<i16>,
Writes a signed 16-bit value to the stream