Method CreateReadOnlySpanSaturating
CreateReadOnlySpanSaturating<T>(ref T, nint)
[Saturating] Creates a new read-only span over a portion of a regular managed object.
[FakeCLSCompliant(false)]
public static ReadOnlySpan<T> CreateReadOnlySpanSaturating<T>(ref T reference, nint length)
Parameters
referenceTA reference to data.
lengthnintThe number of T elements that reference contains.
Returns
- ReadOnlySpan<T>
A read-only span.
Type Parameters
TThe type of the data items.