Class NativeSortExtension | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class NativeSortExtension

    Inheritance
    System.Object
    NativeSortExtension
    Namespace: Unity.Collections
    Syntax
    public static class NativeSortExtension

    Methods

    Sort<T>(T*, Int32)

    Declaration
    public static void Sort<T>(T*array, int length)
        where T : struct, IComparable<T>
    Parameters
    Type Name Description
    T* array
    System.Int32 length
    Type Parameters
    Name Description
    T

    Sort<T>(NativeArray<T>)

    Declaration
    public static void Sort<T>(this NativeArray<T> array)
        where T : struct, IComparable<T>
    Parameters
    Type Name Description
    NativeArray<T> array
    Type Parameters
    Name Description
    T

    Sort<T>(NativeSlice<T>)

    Declaration
    public static void Sort<T>(this NativeSlice<T> slice)
        where T : struct, IComparable<T>
    Parameters
    Type Name Description
    NativeSlice<T> slice
    Type Parameters
    Name Description
    T

    Sort<T, U>(T*, Int32, U)

    Declaration
    public static void Sort<T, U>(T*array, int length, U comp)
        where T : struct where U : IComparer<T>
    Parameters
    Type Name Description
    T* array
    System.Int32 length
    U comp
    Type Parameters
    Name Description
    T
    U

    Sort<T, U>(NativeArray<T>, U)

    Declaration
    public static void Sort<T, U>(this NativeArray<T> array, U comp)
        where T : struct where U : IComparer<T>
    Parameters
    Type Name Description
    NativeArray<T> array
    U comp
    Type Parameters
    Name Description
    T
    U

    Sort<T, U>(NativeSlice<T>, U)

    Declaration
    public static void Sort<T, U>(this NativeSlice<T> slice, U comp)
        where T : struct where U : IComparer<T>
    Parameters
    Type Name Description
    NativeSlice<T> slice
    U comp
    Type Parameters
    Name Description
    T
    U
    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