Class ManagedNativeArray<TIn, TOut>
Wraps a managed T[] in a NativeArray<T>without copying memory.
Implements
Inherited Members
Namespace: GLTFast.Export
Assembly: glTFast.Export.dll
Syntax
public class ManagedNativeArray<TIn, TOut> : IDisposable where TIn : unmanaged where TOut : unmanaged
Type Parameters
Name | Description |
---|---|
TIn | |
TOut |
Constructors
ManagedNativeArray(TIn[])
Wraps a managed T[] in a NativeArray<T>without copying memory.
Declaration
public ManagedNativeArray(TIn[] original)
Parameters
Type | Name | Description |
---|---|---|
TIn[] | original | The original T[] to convert into a NativeArray<T> |
Properties
nativeArray
Points to the managed NativeArray<T>.
Declaration
public NativeArray<TOut> nativeArray { get; }
Property Value
Type | Description |
---|---|
NativeArray<TOut> |
Methods
Dispose()
Disposes the managed NativeArray<TT>.
Declaration
public void Dispose()