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

ParseTsUdCsSec() private method

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

            // reserve the start index
            int startIndex = currentIndex;

            // TS_UD_SC_SEC1: header
            secData.header.type = (TS_UD_HEADER_type_Values)ParseUInt16(data, ref currentIndex, false);
            secData.header.length = ParseUInt16(data, ref currentIndex, false);

            // TS_UD_SC_SEC1: encryptionMethod
            secData.encryptionMethods = (encryptionMethod_Values)ParseUInt32(data, ref currentIndex, false);

            // TS_UD_SC_SEC1: encryptionLevel
            secData.extEncryptionMethods = (uint)ParseUInt32(data, ref currentIndex, false);

            return secData;
        }
RdpbcgrServerDecoder