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
Properties
Address
The address of the first element in the array.
public nint Address { get; }
Property Value
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
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()