Struct SpanLite<T>
Represents a span which is represented in memory like an std::span_t from the C++ standard library.
public readonly struct SpanLite<T> where T : unmanaged
Type Parameters
T
- Inherited Members
Constructors
SpanLite(T*, Size)
Initializes a new instance of the SpanLite<T> struct.
public SpanLite(T* data, Size size)
Parameters
dataT*A pointer to the underlying sequence.
sizeSizeThe number of elements.
Methods
AsSpan()
Converts the span to a Span<T>.
public Span<T> AsSpan()
Returns
- Span<T>
The converted span.