Table of Contents

Struct PointerArray<T>

Namespace
SharpPluginLoader.Core
Assembly
SharpPluginLoader.Core.dll

A wrapper around a native array of pointers.

public readonly struct PointerArray<T> where T : unmanaged

Type Parameters

T

The type of the underlying elements

Inherited Members

Constructors

PointerArray(nint, int)

A wrapper around a native array of pointers.

public PointerArray(nint address, int length)

Parameters

address nint
length int

Properties

Address

The address of the first element in the array.

public nint Address { get; }

Property Value

nint

this[int]

Gets a reference to the element at the specified index.

public ref T this[int index] { get; }

Parameters

index int

Property Value

T

this[nint]

Gets a pointer to the element at the specified index.

public T* this[nint index] { get; }

Parameters

index nint

Property Value

T*

Length

The number of elements in the array.

public int Length { get; }

Property Value

int

Pointer

A pointer to the first element in the array.

public T** Pointer { get; }

Property Value

T**

Methods

GetEnumerator()

Gets an enumerator for the array.

public PointerArray<T>.Enumerator GetEnumerator()

Returns

PointerArray<T>.Enumerator