BurstTriangulator
v3.8.0
Search Results for

    Show / Hide Table of Contents

    Method AsNativeArray

    AsNativeArray<T>(T[], out Handle)

    Returns NativeArray<T> view on managed array with handle to prevents from deallocation.

    Warning! User has to call Free() manually to release the data for GC! Read more in the project manual.
    Declaration
    public static NativeArray<T> AsNativeArray<T>(this T[] array, out Handle handle) where T : unmanaged
    Parameters
    Type Name Description
    T[] array

    Array to view.

    Handle handle

    A handle that prevents the array from being deallocated by the GC.

    Returns
    Type Description
    NativeArray<T>

    NativeArray<T> view on managed array with NativeArray<T>.

    Type Parameters
    Name Description
    T

    The type of the elements.

    In this article
    Back to top Generated by DocFX | Documentation © 2024 by Andrzej Więckowski is licensed under CC BY 4.0