Szerkesztés

Megosztás a következőn keresztül:


PrefixingBufferWriter<T,TBufferWriter>.Sequence.GetMemory(Int32) Method

Definition

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.

Implements

Applies to