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

ToBytes() public method

Encode this structure into byte array.
public ToBytes ( ) : byte[]
return byte[]
        public override byte[] ToBytes()
        {
            List<byte> channelBuffer = new List<byte>();
            RdpbcgrEncoder.EncodeStructure(channelBuffer, channelPduHeader);
            RdpbcgrEncoder.EncodeBytes(channelBuffer, virtualChannelData);

            List<byte> totalBuffer = new List<byte>();
            RdpbcgrEncoder.EncodeSlowPathPdu(totalBuffer, commonHeader, channelBuffer.ToArray(), context);

            return RdpbcgrUtility.ToBytes(totalBuffer);
        }
Virtual_Channel_RAW_Pdu