/// <summary> /// Writes two-byte signed short value to the underlaying stream /// </summary> /// <param name="value"><see cref="short"/> value to write</param> public void Write(short value) { if (BE) { ByteUtils.FromShortBE(buffer, value); } else { ByteUtils.FromShortLE(buffer, value); } stream.Write(buffer, 0, 2); }