ChunkSequence
Represents extension methods for ChunkSequence<T>.
Converts two memory blocks to ReadOnlySequence<T> data type.
public static ValueTask CopyToAsync(this ChunkSequence<byte> sequence, Stream output, CancellationToken token = default)
Copies chunks of bytes into the stream.
public static ValueTask CopyToAsync(this ChunkSequence<char> sequence, TextWriter output, CancellationToken token = default)
Copies chunks of bytes into the text writer.
Converts the sequence of memory blocks to ReadOnlySequence<T> data type.