Skip to content

IOutputBuffer Methods

Provides access to the bytes written to an output buffer.

GetReadOnlySequence(int)

abstract
public abstract ReadOnlySequence<byte> GetReadOnlySequence(int maxSegmentSize)
Returns the written bytes as a read-only sequence.

Parameters

maxSegmentSizeint
The maximum number of bytes in each sequence segment.

Returns

A read-only sequence containing the written bytes.