Szerkesztés

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


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

Definition

Gets writable memory that can be initialized and added to the sequence via a subsequent call to Advance(Int32).

public Span<T> GetSpan (int sizeHint);
abstract member GetSpan : int -> Span<'T>
override this.GetSpan : int -> Span<'T>
Public Function GetSpan (sizeHint As Integer) As Span(Of T)

Parameters

sizeHint
Int32

The size of the memory required, or 0 to just get a convenient (non-empty) buffer.

Returns

Span<T>

The requested memory.

Implements

Applies to