Skip to content

TestMultiSegmentBufferWriter.GetReadOnlySequence(int)

GetReadOnlySequence(int)

View source
public 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.