Table of Contents

Method CreateSpanSaturating

Namespace
Zyl.ExSpans.Impl
Assembly
ExSpans.Core.dll

CreateSpanSaturating<T>(ref T, nint)

[Saturating] Creates a new span over a portion of a regular managed object.

[FakeCLSCompliant(false)]
public static Span<T> CreateSpanSaturating<T>(ref T reference, nint length)

Parameters

reference T

A reference to data.

length nint

The number of T elements that reference contains.

Returns

Span<T>

A span.

Type Parameters

T

The type of the data items.