示例#1
0
        public override void Write(byte[] buffer, int offset, int count)
        {
            MemoryStream.Write(buffer, offset, count);

            _            = PacketDebug.AppendAsync("", MemoryStream.ToArray());
            MemoryStream = new MemoryStream();

            BaseStream.Write(buffer, offset, count);
        }
示例#2
0
        public override async Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
        {
            await MemoryStream.WriteAsync(buffer, offset, count, cancellationToken);

            await PacketDebug.AppendAsync("", MemoryStream.ToArray());

            MemoryStream = new MemoryStream();

            await BaseStream.WriteAsync(buffer, offset, count, cancellationToken);
        }