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