Skip to content

TestBufferWriterStruct.GetMemory(int)

GetMemory(int)

View source
public readonly Memory<byte> GetMemory(int sizeHint = 0)
Gets the unwritten portion of the fixed output buffer.

Parameters

sizeHintint
The requested minimum size. This fixed-buffer implementation does not allocate additional capacity.

Returns

The memory available for writing.