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

ParseTsConfirmActivePdu() private method

Parse TS_CONFIRM_ACTIVE_PDU (parser index is updated according to parsed length)
private ParseTsConfirmActivePdu ( byte data, int &currentIndex ) : TS_CONFIRM_ACTIVE_PDU
data byte data to be parsed
currentIndex int current parser index
return TS_CONFIRM_ACTIVE_PDU
        private TS_CONFIRM_ACTIVE_PDU ParseTsConfirmActivePdu(byte[] data, ref int currentIndex)
        {
            TS_CONFIRM_ACTIVE_PDU pdu = new TS_CONFIRM_ACTIVE_PDU();
            pdu.shareControlHeader = ParseTsShareControlHeader(data, ref currentIndex);
            pdu.shareId = ParseUInt32(data, ref currentIndex, false);
            pdu.originatorId = (originatorId_Values)ParseUInt16(data, ref currentIndex, false);
            pdu.lengthSourceDescriptor = ParseUInt16(data, ref currentIndex, false);
            pdu.lengthCombinedCapabilities = ParseUInt16(data, ref currentIndex, false);
            pdu.sourceDescriptor =
                GetBytes(data, ref currentIndex, pdu.lengthSourceDescriptor);
            pdu.numberCapabilities = ParseUInt16(data, ref currentIndex, false);
            pdu.pad2Octets = ParseUInt16(data, ref currentIndex, false);
            pdu.capabilitySets = new Collection<ITsCapsSet>();
            while (currentIndex < data.Length)
            {
                pdu.capabilitySets.Add(ParseTsCapsSet(data, ref currentIndex));
            }

            return pdu;
        }
RdpbcgrServerDecoder