CreateCompressedDataPdu() public méthode

Create a DataCompressedDvcPdu
public CreateCompressedDataPdu ( uint channelId, byte data, int channelChunkLength = 1599 ) : Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpedyc.DataCompressedDvcPdu[]
channelId uint
data byte
channelChunkLength int
Résultat Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpedyc.DataCompressedDvcPdu[]
        /// <summary>
        /// Send data using this DVC
        /// </summary>
        /// <param name="data"></param>
        public void Send(byte[] data, bool isCompressed = false)
        {
            DataDvcBasePdu[] dataPdus = null;
            if (isCompressed)
            {
                dataPdus = pduBuilder.CreateCompressedDataPdu(
                    channelId,
                    data);
            }
            else
            {
                dataPdus = pduBuilder.CreateDataPdu(channelId, data, ConstLength.MAX_CHUNK_LEN);
            }

            if (dataPdus != null)
            {
                foreach (DataDvcBasePdu pdu in dataPdus)
                {
                    transport.Send(pdu);
                }
            }
        }