{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class NativeSortExtension | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NativeSortExtension

    Extension methods for sorting collections.

    Inheritance
    object
    NativeSortExtension
    Namespace: Unity.Collections
    Assembly: solution.dll
    Syntax
    public static class NativeSortExtension

    Methods

    Name Description
    BinarySearch<T>(UnsafeList<T>, T)

    Finds a value in this sorted list by binary search.

    BinarySearch<T>(NativeArray<T>, T)

    Finds a value in this sorted array by binary search.

    BinarySearch<T>(ReadOnly, T)

    Finds a value in this sorted array by binary search.

    BinarySearch<T>(NativeList<T>, T)

    Finds a value in this sorted list by binary search.

    BinarySearch<T>(NativeSlice<T>, T)

    Finds a value in this sorted slice by binary search.

    BinarySearch<T>(T*, int, T)

    Finds a value in a sorted array by binary search.

    BinarySearch<T, U>(UnsafeList<T>, T, U)

    Finds a value in this sorted list by binary search using a custom comparison.

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

    Finds a value in this sorted array by binary search using a custom comparison.

    BinarySearch<T, U>(ReadOnly, T, U)

    Finds a value in this sorted array by binary search using a custom comparison.

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

    Finds a value in this sorted list by binary search using a custom comparison.

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

    Finds a value in this sorted slice by binary search using a custom comparison.

    BinarySearch<T, U>(T*, int, T, U)

    Finds a value in a sorted array by binary search using a custom comparison.

    SortJob<T>(UnsafeList<T>)

    Returns a job which will sort this list in ascending order.

    SortJob<T>(NativeArray<T>)

    Returns a job which will sort this array in ascending order.

    SortJob<T>(NativeList<T>)

    Returns a job which will sort this list in ascending order.

    SortJob<T>(NativeSlice<T>)

    Returns a job which will sort this slice in ascending order.

    SortJob<T>(T*, int)

    Returns a job which will sort an array in ascending order.

    SortJob<T, U>(UnsafeList<T>, U)

    Returns a job which will sort this list using a custom comparison.

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

    Returns a job which will sort this array using a custom comparison.

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

    Returns a job which will sort this list using a custom comparison.

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

    Returns a job which will sort this slice using a custom comparison.

    SortJob<T, U>(T*, int, U)

    Returns a job which will sort an array using a custom comparison.

    Sort<T>(UnsafeList<T>)

    Sorts this list in ascending order.

    Sort<T>(NativeArray<T>)

    Sorts this array in ascending order.

    Sort<T>(NativeList<T>)

    Sorts this list in ascending order.

    Sort<T>(NativeSlice<T>)

    Sorts this slice in ascending order.

    Sort<T>(T*, int)

    Sorts an array in ascending order.

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

    Sorts the list using a custom comparison.

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

    Sorts this array using a custom comparison.

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

    Sorts this list using a custom comparison.

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

    Sorts this slice using a custom comparison.

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

    Sorts an array using a custom comparison.

    In This Article
    Back to top
    Copyright © 2023 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)