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