Skip to content

TestBufferWriterStruct.GetReadOnlySequence(int)

GetReadOnlySequence(int)

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