Class NativeTensorArrayFromManagedArray
Represents an area of managed memory that's exposed as if it's native memory.
Implements
Inherited Members
Namespace: Unity.Sentis
Assembly: Unity.Sentis.dll
Syntax
public class NativeTensorArrayFromManagedArray : NativeTensorArray, IDisposable
Constructors
NativeTensorArrayFromManagedArray(Array, int, int, int)
Initializes and returns an instance of NativeTensorArrayFromManagedArray
from an Array
and a integer offset, size and count.
Declaration
public NativeTensorArrayFromManagedArray(Array srcData, int srcElementOffset, int srcElementSize, int numDestElement)
Parameters
Type | Name | Description |
---|---|---|
Array | srcData | The data for the |
int | srcElementOffset | The integer offset to use for the backing data. |
int | srcElementSize | The integer size to use for the backing data in bytes. |
int | numDestElement | The integer count to use for the backing data. |
NativeTensorArrayFromManagedArray(byte[], int, int)
Initializes and returns an instance of NativeTensorArrayFromManagedArray
from an Array
and a integer offset and count.
Declaration
public NativeTensorArrayFromManagedArray(byte[] srcData, int srcOffset, int numDestElement)
Parameters
Type | Name | Description |
---|---|---|
byte[] | srcData | The data for the |
int | srcOffset | The integer offset to use for the backing data. |
int | numDestElement | The integer count to use for the backing data. |
Properties
RawPtr
The raw pointer of the backing data.
Declaration
public override void* RawPtr { get; }
Property Value
Type | Description |
---|---|
void* |