Class NativeTensorArray
Represents an area of native memory that's exposed to managed code.
Implements
Inherited Members
Namespace: Unity.Sentis
Assembly: solution.dll
Syntax
public class NativeTensorArray : IDisposable
Constructors
Name | Description |
---|---|
NativeTensorArray(int, bool, Allocator) | Initializes and returns an instance of |
NativeTensorArray(SafeHandle, int) | Initializes and returns an instance of |
Properties
Name | Description |
---|---|
Disposed | Whether the backing data is disposed. |
Length | The number of allocated elements. |
LongLength | The number of allocated elements as a 64-bit integer. |
RawPtr | The raw pointer of the backing data. |
SizeOfType | The size in bytes of an element of the stored type. |
Methods
Name | Description |
---|---|
AddressAt<T>(long) | Returns the raw pointer of the backing data at a given index. |
AsReadOnlySpan<T>(int, int) | Returns the data as a |
BlockCopy(byte[], int, NativeTensorArray, int, int) | Copies the data from a source byte array to a destination |
BlockCopy(NativeTensorArray, int, byte[], int, int) | Copies the data from a source |
Copy(NativeTensorArray, int, NativeTensorArray, int, int) | Copies the data from a source |
Copy(NativeTensorArray, NativeTensorArray, int, int) | Copies the data from a source |
CopyTo(NativeTensorArray, int) | Copies all of the data to a |
Copy<T>(NativeArray<T>, int, NativeTensorArray, int, int) | Copies the data from a source |
Copy<T>(NativeArray<T>, NativeTensorArray, int, int) | Copies the data from a source array to a destination |
Copy<T>(ReadOnly, int, NativeTensorArray, int, int) | Copies the data from a source |
Copy<T>(NativeTensorArray, int, NativeArray<T>, int, int) | Copies the data from a source |
Copy<T>(NativeTensorArray, int, T[], int, int) | Copies the data from a source |
Copy<T>(NativeTensorArray, T[], int, int) | Copies the data from a source array to a destination array up to a given length. |
Copy<T>(T[], int, NativeTensorArray, int, int) | Copies the data from a source array to a destination |
Copy<T>(T[], NativeTensorArray, int, int) | Copies the data from a source array to a destination |
DataItemSize() | Gets the size in bytes of an individual element. |
Dispose() | Disposes of the array and any associated memory. |
GetNativeArrayHandle<T>() | Returns the data converted to a |
GetReadOnlyNativeArrayHandle<T>(int, int) | Returns the data as a |
Get<T>(int) | Returns the value of the backing data at a given index. |
Set<T>(int, T) | Sets the value of the backing data at a given index. |
ToArray<T>(int, int) | Returns the data as an array. |
ZeroMemory() | Clears the allocated memory to zero. |