docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CoreUnsafeUtils

    Static class with unsafe utility functions.

    Inheritance
    object
    CoreUnsafeUtils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    public static class CoreUnsafeUtils

    Methods

    Name Description
    CombineHashes(int, Hash128*, Hash128*)

    Combine hashes.

    CombineHashes<TValue, TGetter>(int, void*, Hash128*)

    Combine all of the hashes of a collection of hashes.

    CompareHashes(int, Hash128*, int, Hash128*, int*, int*, out int, out int)

    Compare hashes.

    CompareHashes<TOldValue, TOldGetter, TNewValue, TNewGetter>(int, void*, int, void*, int*, int*, out int, out int)

    Compare hashes of two collections and provide a list of indices removeIndices to remove in oldHashes and a list of indices addIndices to add in newHashes.

    Assumes that newHashes and oldHashes are sorted.

    CopyTo<T>(List<T>, void*, int)

    Extension method to copy elements of a list into a buffer.

    CopyTo<T>(T[], void*, int)

    Extension method to copy elements of an array into a buffer.

    HaveDuplicates(int[])

    Checks for duplicates in an array.

    IndexOf<T>(void*, int, T)

    Index of an element in a buffer.

    InsertionSort(uint[], int)

    Insertion sort

    InsertionSort(NativeArray<uint>, int)

    Insertion sort

    MergeSort(uint[], int, ref uint[])

    Merge sort - non recursive

    MergeSort(NativeArray<uint>, int, ref NativeArray<uint>)

    Merge sort - non recursive

    QuickSort(uint[], int, int)

    Quick Sort

    QuickSort<T>(int, void*)

    Quick sort.

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

    Quick sort.

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

    Quick sort.

    RadixSort(uint[], int, ref uint[], int)

    Radix sort or bucket sort, stable and non in place.

    RadixSort(NativeArray<uint>, int, ref NativeArray<uint>, int)

    Radix sort or bucket sort, stable and non in place.

    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)