ArrayBufferWriter<T>.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.
Returns a Memory<T> to write to that is at least the length specified by sizeHint
.
public Memory<T> GetMemory (int sizeHint = 0);
abstract member GetMemory : int -> Memory<'T>
override this.GetMemory : int -> Memory<'T>
Public Function GetMemory (Optional sizeHint As Integer = 0) As Memory(Of T)
Parameters
Returns
A Memory<T> whose length is at least sizeHint
. If sizeHint
is not provided or is equal to 0, some non-empty buffer is returned.
Implements
Exceptions
sizeHint
is negative.
Remarks
This method never returns Memory<T>.Empty.
Applies to
Werk met ons samen op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en bekijken. Raadpleeg onze gids voor inzenders voor meer informatie.