docs.unity3d.com
    Show / Hide Table of Contents

    Interface IReadableTensorData

    Namespace: Unity.Sentis
    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 Description
    T
    Type Parameters
    Name Description
    T

    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 Description
    NativeArray.ReadOnly<>
    Type Parameters
    Name Description
    T

    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
    Name Description
    T

    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 Description
    T[]
    Type Parameters
    Name Description
    T

    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
    Name Description
    T
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023