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

DecodeSaveSessionInfoPDU() public method

Decode Save Session Info PDU
public DecodeSaveSessionInfoPDU ( byte data, byte decryptedUserData, SecurityHeaderType type ) : StackPacket
data byte data to be parsed
decryptedUserData byte decrypted user data to be parsed
type SecurityHeaderType security header type
return StackPacket
        public StackPacket DecodeSaveSessionInfoPDU(
            byte[] data,
            byte[] decryptedUserData,
            SecurityHeaderType type)
        {
            Server_Save_Session_Info_Pdu pdu = new Server_Save_Session_Info_Pdu();

            // data index
            int dataIndex = 0;

            // SaveSessionInfoPDU: commonHeader
            pdu.commonHeader = ParseMcsCommonHeader(data, ref dataIndex, type);

            // user data index
            int userDataIndex = 0;

            // SaveSessionInfoPDU: saveSessionInfoPduData
            pdu.saveSessionInfoPduData = ParseTsSaveSessionInfoPduData(decryptedUserData, ref userDataIndex);

            // Check if data length exceeded expectation
            VerifyDataLength(decryptedUserData.Length, userDataIndex, ConstValue.ERROR_MESSAGE_DATA_LENGTH_EXCEEDED);
            return pdu;
        }
RdpbcgrDecoder