Class ChunkSequence
Represents extension methods for ChunkSequence<T>.
Namespace: DotNext.Buffers
Assembly: DotNext.dll
Syntax
public static class ChunkSequence : object
Methods
| Improve this Doc View SourceCopyToAsync(ChunkSequence<Byte>, Stream, CancellationToken)
Copies chunks of bytes into the stream.
Declaration
public static Task CopyToAsync(this ChunkSequence<byte> sequence, Stream output, CancellationToken token = null)
Parameters
Type | Name | Description |
---|---|---|
ChunkSequence<Byte> | sequence | The sequence of chunks. |
Stream | output | The output stream. |
CancellationToken | token | The token that can be used to cancel execution of this method. |
Returns
Type | Description |
---|---|
Task | The task representing asynchronouos execution of this method. |
CopyToAsync(ChunkSequence<Char>, TextWriter, CancellationToken)
Copies chunks of bytes into the text writer.
Declaration
public static Task CopyToAsync(this ChunkSequence<char> sequence, TextWriter output, CancellationToken token = null)
Parameters
Type | Name | Description |
---|---|---|
ChunkSequence<Char> | sequence | The sequence of chunks. |
TextWriter | output | The text writer. |
CancellationToken | token | The token that can be used to cancel execution of this method. |
Returns
Type | Description |
---|---|
Task | The task representing asynchronouos execution of this method. |