ArrayBufferWriter<T>.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.
Returns a Span<T> to write to that is at least a specified length.
public Span<T> GetSpan (int sizeHint = 0);
abstract member GetSpan : int -> Span<'T>
override this.GetSpan : int -> Span<'T>
Public Function GetSpan (Optional sizeHint As Integer = 0) As Span(Of T)
Parameters
Returns
A span of at least sizeHint
in length. 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 Span<T>.Empty.
Applies to
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.