Class NativeTensorArrayFromManagedArray
Represents an area of managed memory that's exposed as if it's native memory.
Inherited Members
Namespace: Unity.Sentis
Syntax
public class NativeTensorArrayFromManagedArray : NativeTensorArray, IDisposable
Constructors
NativeTensorArrayFromManagedArray(Array, Int32)
Initializes and returns an instance of NativeTensorArrayFromManagedArray
from an Array
and an integer offset.
Declaration
public NativeTensorArrayFromManagedArray(Array srcData, int srcOffset = 0)
Parameters
Type | Name | Description |
---|---|---|
Array | srcData | The data for the |
Int32 | srcOffset | The integer offset to use for the backing data. |
NativeTensorArrayFromManagedArray(Byte[], Int32, Int32)
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 |
Int32 | srcOffset | The integer offset to use for the backing data. |
Int32 | 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* |