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); }
public static int ReadShortU(byte[] aBuf, int aOff) { return(LittleEndianHelper.ReadShort(aBuf, aOff) & 0xFFFF); }
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); }
public static char readChar(byte[] aBuf, int aOff) { return((char)(ushort)LittleEndianHelper.ReadShort(aBuf, aOff)); }