Class PinnedArray<T>
A Pinned array of the specific type
public class PinnedArray<T> : DisposableObject, IDisposable
Type Parameters
T
The type of the array
- Inheritance
-
PinnedArray<T>
- Implements
- Inherited Members
Constructors
PinnedArray(int)
Create a Pinnned array of the specific type
public PinnedArray(int size)
Parameters
size
intThe size of the array
Properties
Array
Get the array
public T[] Array { get; }
Property Value
- T[]
Methods
AddrOfPinnedObject()
Get the address of the pinned array
public nint AddrOfPinnedObject()
Returns
- nint
A pointer to the address of the the pinned array
DisposeObject()
Disposed the unmanaged data
protected override void DisposeObject()
ReleaseManagedResources()
Release the GCHandle
protected override void ReleaseManagedResources()