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