Table of Contents

Struct SpanLite<T>

Namespace
SampSharp.OpenMp.Core.Std
Assembly
SampSharp.OpenMp.Core.dll

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

data T*

A pointer to the underlying sequence.

size Size

The number of elements.

Methods

AsSpan()

Converts the span to a Span<T>.

public Span<T> AsSpan()

Returns

Span<T>

The converted span.