Interface IReadableTensorData
Syntax
public interface IReadableTensorData
Methods
Get<T>(Int32)
Returns a data element at index.
Declaration
T Get<T>(int index)
where T : struct
Parameters
| Type |
Name |
Description |
| Int32 |
index |
|
Returns
Type Parameters
GetReadOnlyNativeArrayHandle<T>(Int32, Int32)
Returns a ReadOnlyNativeArray handle on the linear memory data.
Declaration
NativeArray<T>.ReadOnly GetReadOnlyNativeArrayHandle<T>(int dstCount, int srcOffset = 0)
where T : struct
Parameters
| Type |
Name |
Description |
| Int32 |
dstCount |
|
| Int32 |
srcOffset |
|
Returns
Type Parameters
Set<T>(Int32, T)
Sets value data element at index.
Declaration
void Set<T>(int index, T value)
where T : struct
Parameters
| Type |
Name |
Description |
| Int32 |
index |
|
| T |
value |
|
Type Parameters
ToArray<T>(Int32, Int32)
Returns a array that is a copy of the linear memory data.
Declaration
T[] ToArray<T>(int dstCount, int srcOffset = 0)
where T : struct
Parameters
| Type |
Name |
Description |
| Int32 |
dstCount |
|
| Int32 |
srcOffset |
|
Returns
Type Parameters
ToReadOnlySpan<T>(Int32, Int32)
Returns a ReadOnlySpan on the linear memory data.
Declaration
ReadOnlySpan<T> ToReadOnlySpan<T>(int dstCount, int srcOffset = 0)
where T : struct
Parameters
| Type |
Name |
Description |
| Int32 |
dstCount |
|
| Int32 |
srcOffset |
|
Returns
| Type |
Description |
| ReadOnlySpan<T> |
|
Type Parameters