PrefixingBufferWriter<T,TBufferWriter>.Sequence.GetMemory(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets writable memory that can be initialized and added to the sequence via a subsequent call to Advance(Int32).
public Memory<T> GetMemory (int sizeHint);
abstract member GetMemory : int -> Memory<'T>
override this.GetMemory : int -> Memory<'T>
Public Function GetMemory (sizeHint As Integer) As Memory(Of T)
Parameters
- sizeHint
- Int32
The size of the memory required, or 0 to just get a convenient (non-empty) buffer.
Returns
Memory<T>
The requested memory.