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

ParseTsDeactivateAllPdu() private method

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

            // TS_DEACTIVATE_ALL_PDU: shareControlHeader
            pdu.shareControlHeader = ParseTsShareControlHeader(data, ref currentIndex);

            // TS_DEACTIVATE_ALL_PDU: shareId
            pdu.shareId = ParseUInt32(data, ref currentIndex, false);

            // TS_DEACTIVATE_ALL_PDU: lengthSourceDescriptor
            pdu.lengthSourceDescriptor = ParseUInt16(data, ref currentIndex, false);

            // TS_DEACTIVATE_ALL_PDU: sourceDescriptor
            pdu.sourceDescriptor = GetBytes(data, ref currentIndex, (int)pdu.lengthSourceDescriptor);

            return pdu;
        }
RdpbcgrDecoder