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

ParseRdpNegRsp() private method

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

            // RDP_NEG_RSP: type
            rdpNegRsp.type = (RDP_NEG_RSP_type_Values)ParseByte(data, ref currentIndex);

            // RDP_NEG_RSP: flags
            rdpNegRsp.flags = (RDP_NEG_RSP_flags_Values)ParseByte(data, ref currentIndex);

            // RDP_NEG_RSP: length
            rdpNegRsp.length = (RDP_NEG_RSP_length_Values)ParseUInt16(data, ref currentIndex, false);

            // RDP_NEG_RSP: selectedProtocol
            rdpNegRsp.selectedProtocol = (selectedProtocols_Values)ParseUInt32(data, ref currentIndex, false);

            return rdpNegRsp;
        }
RdpbcgrDecoder