public static void WriteShortU(int aVal, byte[] aBuf, int aOff)
 {
     if (aVal > LittleEndianHelper.USHORT_MAX)
     {
         throw new IOException(ExcelRenderRes.MaxValueExceeded(LittleEndianHelper.USHORT_MAX.ToString(CultureInfo.InvariantCulture)));
     }
     LittleEndianHelper.WriteShort((short)(aVal & 0xFFFF), aBuf, aOff);
 }
        private void SetValue16(int offset, short mask, int value)
        {
            short aVal = BitField16.PutValue(LittleEndianHelper.ReadShort(this.m_xfData, offset), mask, (short)value);

            LittleEndianHelper.WriteShort(aVal, this.m_xfData, offset);
        }
        private void WriteMaskedValue(int offset, short mask, short value)
        {
            short aVal = BitField16.PutValue(LittleEndianHelper.ReadShort(this.m_data, offset), mask, value);

            LittleEndianHelper.WriteShort(aVal, this.m_data, offset);
        }