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

DecodeDeactivateAllPDU() public method

Decode Deactivate All PDU
public DecodeDeactivateAllPDU ( byte data, byte decryptedUserData, SecurityHeaderType type ) : Microsoft.Protocols.TestTools.StackSdk.StackPacket
data byte data to be parsed
decryptedUserData byte decrypted user data to be parsed
type SecurityHeaderType security header type
return Microsoft.Protocols.TestTools.StackSdk.StackPacket
        public StackPacket DecodeDeactivateAllPDU(
            byte[] data,
            byte[] decryptedUserData,
            SecurityHeaderType type)
        {
            Server_Deactivate_All_Pdu pdu = new Server_Deactivate_All_Pdu();

            // data index
            int dataIndex = 0;

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

            // user data index
            int userDataIndex = 0;

            // DeactivateAllPDU: deactivateAllPduData
            pdu.deactivateAllPduData = ParseTsDeactivateAllPdu(decryptedUserData, ref userDataIndex);

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