コード例 #1
0
        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);
        }
コード例 #2
0
 public static int ReadShortU(byte[] aBuf, int aOff)
 {
     return(LittleEndianHelper.ReadShort(aBuf, aOff) & 0xFFFF);
 }
コード例 #3
0
        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);
        }
コード例 #4
0
 public static char readChar(byte[] aBuf, int aOff)
 {
     return((char)(ushort)LittleEndianHelper.ReadShort(aBuf, aOff));
 }