docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method QuickSort

    QuickSort(uint[], int, int)

    Quick Sort

    Declaration
    public static void QuickSort(uint[] arr, int left, int right)
    Parameters
    Type Name Description
    uint[] arr

    uint array.

    int left

    Left boundary.

    int right

    Left boundary.

    QuickSort<T>(int, void*)

    Quick sort.

    Declaration
    public static void QuickSort<T>(int count, void* data) where T : struct, IComparable<T>
    Parameters
    Type Name Description
    int count

    Number of element.

    void* data

    Buffer to sort.

    Type Parameters
    Name Description
    T

    Type to compare.

    QuickSort<TValue, TKey, TGetter>(int, void*)

    Quick sort.

    Declaration
    public static void QuickSort<TValue, TKey, TGetter>(int count, void* data) where TValue : struct where TKey : struct, IComparable<TKey> where TGetter : struct, CoreUnsafeUtils.IKeyGetter<TValue, TKey>
    Parameters
    Type Name Description
    int count

    Number of element.

    void* data

    Data to sort.

    Type Parameters
    Name Description
    TValue

    Value type.

    TKey

    Key Type.

    TGetter

    Getter type.

    QuickSort<TValue, TKey, TGetter>(void*, int, int)

    Quick sort.

    Declaration
    public static void QuickSort<TValue, TKey, TGetter>(void* data, int left, int right) where TValue : struct where TKey : struct, IComparable<TKey> where TGetter : struct, CoreUnsafeUtils.IKeyGetter<TValue, TKey>
    Parameters
    Type Name Description
    void* data

    Data to sort.

    int left

    Left boundary.

    int right

    Right boundary.

    Type Parameters
    Name Description
    TValue

    Value type.

    TKey

    Key Type.

    TGetter

    Getter type.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)