Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpbcgr.Client_MCS_Erect_Domain_Request.ToBytes C# (CSharp) Method

ToBytes() public method

Encode this structure into byte array.
public ToBytes ( ) : byte[]
return byte[]
        public override byte[] ToBytes()
        {
            List<byte> totalBuffer = new List<byte>();

            RdpbcgrEncoder.EncodeStructure(totalBuffer, tpktHeader);
            RdpbcgrEncoder.EncodeStructure(totalBuffer, x224Data);

            ErectDomainRequest erectDomain = new ErectDomainRequest(new Asn1Integer(subHeight), new Asn1Integer(subInterval));
            DomainMCSPDU mcsDomain = new DomainMCSPDU(DomainMCSPDU.erectDomainRequest, erectDomain);
            RdpbcgrEncoder.EncodeDomainMcsPdu(totalBuffer, mcsDomain);

            return RdpbcgrUtility.ToBytes(totalBuffer);
        }