PrefixingBufferWriter<T,TBufferWriter>.Sequence.GetSpan(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 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.