docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ToReadOnlySpan

    ToReadOnlySpan<T>(int, int)

    Returns a ReadOnlySpan on the linear memory data.

    Declaration
    public ReadOnlySpan<T> ToReadOnlySpan<T>(int dstCount, int srcOffset = 0) where T : unmanaged
    Parameters
    Type Name Description
    int dstCount

    The number of elements to span.

    int srcOffset

    The index of the first element in the data.

    Returns
    Type Description
    ReadOnlySpan<T>

    Span of elements.

    Type Parameters
    Name Description
    T

    The data type of the elements.

    Implements
    IReadableTensorData.ToReadOnlySpan<T>(int, int)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)