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 |
---|---|
Native |
Initializes and returns an instance of |
Native |
Initializes and returns an instance of |
Properties
Name | Description |
---|---|
Disposed | Whether the backing data is disposed. |
Length | The number of allocated elements. |
Long |
The number of allocated elements as a 64-bit integer. |
Raw |
The raw pointer of the backing data. |
Size |
The size in bytes of an element of the stored type. |
Methods
Name | Description |
---|---|
Address |
Returns the raw pointer of the backing data at a given index. |
As |
Returns the data as a |
Block |
Copies the data from a source byte array to a destination |
Block |
Copies the data from a source |
Copy(Native |
Copies the data from a source |
Copy(Native |
Copies the data from a source |
Copy |
Copies all of the data to a |
Copy<T>(Native |
Copies the data from a source |
Copy<T>(Native |
Copies the data from a source array to a destination |
Copy<T>(Read |
Copies the data from a source |
Copy<T>(Native |
Copies the data from a source |
Copy<T>(Native |
Copies the data from a source |
Copy<T>(Native |
Copies the data from a source array to a destination array up to a given length. |
Copy<T>(T[], int, Native |
Copies the data from a source array to a destination |
Copy<T>(T[], Native |
Copies the data from a source array to a destination |
Data |
Gets the size in bytes of an individual element. |
Dispose() | Disposes of the array and any associated memory. |
Get |
Returns the data converted to a |
Get |
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. |
To |
Returns the data as an array. |
Zero |
Clears the allocated memory to zero. |