Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpbcgr.Client_MCS_Attach_User_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);

            AttachUserRequest attachUserRequest = new AttachUserRequest();
            DomainMCSPDU mcsDomain = new DomainMCSPDU(DomainMCSPDU.attachUserRequest, attachUserRequest);
            RdpbcgrEncoder.EncodeDomainMcsPdu(totalBuffer, mcsDomain);

            return RdpbcgrUtility.ToBytes(totalBuffer);
        }