Example #1
0
 private static Task WriteBufferAsync(IByteTarget target, IByteBuffer buffer, CancellationToken cancellationToken)
 => buffer.CopyToStreamAsync(target.AsWritableStream(), cancellationToken);
Example #2
0
 private static void WriteBuffer(IByteTarget target, IByteBuffer buffer)
 => buffer.CopyToStream(target.AsWritableStream());