Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NativeParallelMultiHashMap<TKey, TValue>.ReadOnly

A read-only alias for the value of a NativeParallelHashMap. Does not have its own allocated storage.
Read time 1 minuteLast updated 12 days ago

Definition

public struct NativeParallelMultiHashMap<TKey, TValue>.ReadOnly : IEnumerable<KeyValue<TKey, TValue>>, IEnumerable

Properties

Property

Description

CapacityThe number of key-value pairs that fit in the current allocation.
IsCreatedWhether this hash map has been allocated (and not yet deallocated).
IsEmptyWhether this hash map is empty.

Methods

Method

Description

ContainsKeyReturns true if a given key is present in this hash map.
CountThe current number of key-value pairs in this hash map.
GetEnumeratorReturns an enumerator over the key-value pairs of this hash map.
GetKeyArrayReturns an array with a copy of all this hash map's keys (in no particular order).
GetKeyValueArraysReturns a NativeKeyValueArrays with a copy of all this hash map's keys and values.
GetValueArrayReturns an array with a copy of all this hash map's values (in no particular order).
TryGetFirstValueGets an iterator for a key.
TryGetNextValueAdvances an iterator to the next value associated with its key.