Class ManagedNativeArray<TIn, TOut>
Wraps a managed TIn[] in a NativeArray<TOut>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 | 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()
Dispose(bool)
Disposes the managed NativeArray<TOut> and unpins the underlying managed array.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | Indicates whether the method call comes from a Dispose method (its value is true) or from a finalizer (its value is false). |