Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpbcgr.RdpbcgrDecoder.ParseTsSetKeyboardIndicatorsPdu C# (CSharp) Method

ParseTsSetKeyboardIndicatorsPdu() private method

Parse TS_SET_KEYBOARD_INDICATORS_PDU (parser index is updated according to parsed length)
private ParseTsSetKeyboardIndicatorsPdu ( byte data, int &currentIndex ) : TS_SET_KEYBOARD_INDICATORS_PDU
data byte data to be parsed
currentIndex int current parser index
return TS_SET_KEYBOARD_INDICATORS_PDU
        private TS_SET_KEYBOARD_INDICATORS_PDU ParseTsSetKeyboardIndicatorsPdu(byte[] data, ref int currentIndex)
        {
            TS_SET_KEYBOARD_INDICATORS_PDU pdu = new TS_SET_KEYBOARD_INDICATORS_PDU();

            // TS_SET_KEYBOARD_INDICATORS_PDU: shareDataHeader
            pdu.shareDataHeader = ParseTsShareDataHeader(data, ref currentIndex);

            // TS_SET_KEYBOARD_INDICATORS_PDU: UnitId
            pdu.UnitId = ParseUInt16(data, ref currentIndex, false);

            // TS_SET_KEYBOARD_INDICATORS_PDU: LedFlags
            pdu.LedFlags = (LedFlags_Values)ParseUInt16(data, ref currentIndex, false);

            return pdu;
        }
RdpbcgrDecoder