Class NativeHashMapExtensions | Collections | 0.4.0-preview.6
docs.unity3d.com
    Show / Hide Table of Contents

    Class NativeHashMapExtensions

    Inheritance
    Object
    NativeHashMapExtensions
    Namespace: Unity.Collections
    Syntax
    public static class NativeHashMapExtensions

    Methods

    GetUniqueKeyArray<TKey, TValue>(NativeMultiHashMap<TKey, TValue>, Allocator)

    Declaration
    public static Tuple<NativeArray<TKey>, int> GetUniqueKeyArray<TKey, TValue>(this NativeMultiHashMap<TKey, TValue> hashMap, Allocator allocator)
        where TKey : struct, IEquatable<TKey>, IComparable<TKey> where TValue : struct
    Parameters
    Type Name Description
    NativeMultiHashMap<TKey, TValue> hashMap
    Allocator allocator
    Returns
    Type Description
    Tuple<NativeArray<TKey>, Int32>
    Type Parameters
    Name Description
    TKey
    TValue

    Unique<T>(NativeArray<T>)

    Declaration
    public static int Unique<T>(this NativeArray<T> array)
        where T : struct, IEquatable<T>
    Parameters
    Type Name Description
    NativeArray<T> array
    Returns
    Type Description
    Int32
    Type Parameters
    Name Description
    T
    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