GetMemory()

IBufferWriter::GetMemory(int32_t) method

Returns a Memory that can be written to, and is guaranteed to have at least sizeHint elements.

virtual System::Memory<T> System::Buffers::IBufferWriter<T>::GetMemory(int32_t sizeHint=0)=0

Arguments

ParameterTypeDescription
sizeHintint32_tThe minimum number of elements that must be available.

Return Value

A Memory that can be written to.

See Also