PBCaGw.DataPacket.SetUInt16 C# (CSharp) Method

SetUInt16() public method

Writes an UInt16 at a given position
public SetUInt16 ( int position, UInt16 value ) : void
position int
value System.UInt16
return void
        public void SetUInt16(int position, UInt16 value)
        {
            Data[position + Offset] = (byte)((value & 0xFF00u) >> 8);
            Data[position + 1 + Offset] = (byte)((value) & 0xFFu);
        }