Skip to content

TestMultiSegmentBufferWriter.GetMemory(int)

GetMemory(int)

View source
public Memory<byte> GetMemory(int sizeHint = 0)
Gets writable memory, capped by the configured maximum allocation size.

Parameters

sizeHintint
The requested minimum size before applying the allocation cap.

Returns

The memory available for writing.