Skip to content

TestMultiSegmentBufferWriter.GetSpan(int)

GetSpan(int)

View source
public Span<byte> GetSpan(int sizeHint)
Gets a writable span, capped by the configured maximum allocation size.

Parameters

sizeHintint
The requested minimum size before applying the allocation cap.

Returns

The span available for writing.