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>(NativeList<T>)

    Declaration
    public static void Sort<T>(this NativeList<T> list)
        where T : struct, IComparable<T>
    Parameters
    Type Name Description
    NativeList<T> list
    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

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

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

    SortJob<T>(T*, Int32, JobHandle)

    Declaration
    public static JobHandle SortJob<T>(T*array, int length, JobHandle inputDeps = null)
        where T : struct, IComparable<T>
    Parameters
    Type Name Description
    T* array
    System.Int32 length
    JobHandle inputDeps
    Returns
    Type Description
    JobHandle
    Type Parameters
    Name Description
    T

    SortJob<T>(NativeArray<T>, JobHandle)

    Declaration
    public static JobHandle SortJob<T>(this NativeArray<T> array, JobHandle inputDeps = null)
        where T : struct, IComparable<T>
    Parameters
    Type Name Description
    NativeArray<T> array
    JobHandle inputDeps
    Returns
    Type Description
    JobHandle
    Type Parameters
    Name Description
    T
    In This Article
    • Methods
      • Sort<T>(T*, Int32)
      • Sort<T>(NativeArray<T>)
      • Sort<T>(NativeSlice<T>)
      • Sort<T>(NativeList<T>)
      • Sort<T, U>(T*, Int32, U)
      • Sort<T, U>(NativeArray<T>, U)
      • Sort<T, U>(NativeSlice<T>, U)
      • Sort<T, U>(NativeList<T>, U)
      • SortJob<T>(T*, Int32, JobHandle)
      • SortJob<T>(NativeArray<T>, JobHandle)
    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