Table of Contents

Class UnmanagedArray<T>

Namespace
Stride.Core
Assembly
Stride.Core.dll
[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

int

Pointer

public nint Pointer { get; }

Property Value

nint

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

destination T[]
pointerByteOffset int
arrayOffset int
arrayLen int

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)

Parameters

source T[]
pointerByteOffset int
arrayOffset int
arrayLen int