Class UnmanagedArray<T>
[Obsolete("Obtain Memory<T> using GC.Allocate*Array or a Stride-specific allocator mechanism.")]
public class UnmanagedArray<T> : IDisposable where T : struct
Type Parameters
T
- Inheritance
-
UnmanagedArray<T>
- Implements
- Extension Methods
Constructors
UnmanagedArray(int)
[Obsolete("Obtain Memory<T> using GC.Allocate*Array or a Stride-specific allocator mechanism.")]
public UnmanagedArray(int length)
Parameters
length
int
Properties
this[int]
public T this[int index] { get; set; }
Parameters
index
int
Property Value
- T
Length
public int Length { get; }
Property Value
Pointer
public IntPtr Pointer { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Read(T[], int)
public void Read(T[] destination, int offset = 0)
Parameters
destination
T[]offset
int
Read(T[], int, int, int)
public void Read(T[] destination, int pointerByteOffset, int arrayOffset, int arrayLen)
Parameters
Write(T[], int)
public void Write(T[] source, int offset = 0)
Parameters
source
T[]offset
int
Write(T[], int, int, int)
public void Write(T[] source, int pointerByteOffset, int arrayOffset, int arrayLen)