public void Write(ushort value) { _stream.Write(PortableBitConverter.GetBytes(value), 0, 2); }
/// <summary> /// Write an unsigned short to a stream /// </summary> /// <param name="stream">The sink stream</param> /// <param name="value">The value to write</param> public static void Write(this Stream stream, ushort value) { stream.Write(PortableBitConverter.GetBytes(value), 0, 2); }