Class UnmanagedArray<T>
[Obsolete("Obtain Memory<T> using GC.Allocate*Array or a Stride-specific allocator mechanism.")]
public class UnmanagedArray<T> : IDisposable where T : structType Parameters
- T
- Inheritance
- 
      objectUnmanagedArray<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
- lengthint
Properties
this[int]
public T this[int index] { get; set; }Parameters
- indexint
Property Value
- T
Length
public int Length { get; }Property Value
Pointer
public nint 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
- destinationT[]
- offsetint
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
- sourceT[]
- offsetint
Write(T[], int, int, int)
public void Write(T[] source, int pointerByteOffset, int arrayOffset, int arrayLen)