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

ParseTsSaveSessionInfoPduData() private method

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

            // TS_SAVE_SESSION_INFO_PDU_DATA: shareDataHeader
            pdu.shareDataHeader = ParseTsShareDataHeader(data, ref currentIndex);

            // TS_SAVE_SESSION_INFO_PDU_DATA: infoType
            pdu.infoType = (infoType_Values)ParseUInt32(data, ref currentIndex, false);

            // TS_SAVE_SESSION_INFO_PDU_DATA: infoData
            pdu.infoData = ParseInfoData(data, ref currentIndex, pdu.infoType);

            return pdu;
        }
RdpbcgrDecoder