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

ParseMcsDomainPdu() private method

Parse MCS Domain PDU (parser index is updated according to parsed length)
private ParseMcsDomainPdu ( byte data, int &currentIndex ) : DomainMCSPDU
data byte data to be parsed
currentIndex int current parser index
return DomainMCSPDU
        private DomainMCSPDU ParseMcsDomainPdu(byte[] data, ref int currentIndex)
        {
            // initialize decode buffer
            byte[] temp = GetBytes(data, ref currentIndex, (data.Length - currentIndex));
            Asn1DecodingBuffer buffer = new Asn1DecodingBuffer(temp);

            // decode
            DomainMCSPDU domainPdu = new DomainMCSPDU();
            domainPdu.PerDecode(buffer);
            return domainPdu;
        }
RdpbcgrServerDecoder