Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpbcgr.RdpbcgrServerDecoder.ParseTsSynchronizePdu C# (CSharp) Method

ParseTsSynchronizePdu() private method

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

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

            // TS_SYNCHRONIZE_PDU: messageType
            pdu.messageType = (messageType_Values)ParseUInt16(data, ref currentIndex, false);

            // TS_SYNCHRONIZE_PDU: targetUser
            pdu.targetUser = ParseUInt16(data, ref currentIndex, false);

            return pdu;
        }
RdpbcgrServerDecoder