A read-only version of NetworkDictionary<TKey,TValue>.
More...
|
int | Find (K key) |
|
V | Get (K key) |
| Returns the value for the given key. Will throw an error if the key is not found.
|
|
uint | GetBucketFromHashCode (int hash) |
|
K | GetKey (int entry) |
|
int | GetNxt (int entry) |
|
V | GetVal (int entry) |
|
bool | TryGet (K key, out V value) |
| Attempts to get the value for a given key. If found, returns true.
|
|
|
readonly int | _bucketsOffset |
|
readonly int | _capacity |
|
readonly int * | _data |
|
readonly int | _entriesOffset |
|
readonly int | _entryStride |
|
readonly EqualityComparer< K > | _equalityComparer |
|
readonly int | _keyOffset |
|
readonly IElementReaderWriter< K > | _keyReaderWriter |
|
readonly int | _nxtOffset |
|
readonly int | _valOffset |
|
readonly IElementReaderWriter< V > | _valReaderWriter |
|
|
const int | FREE_COUNT_OFFSET = 1 |
|
const int | FREE_OFFSET = 0 |
|
const int | INVALID_ENTRY = 0 |
|
const int | USED_COUNT_OFFSET = 2 |
|
|
int | _free [get] |
|
int | _freeCount [get] |
|
int | _usedCount [get] |
|
int | Capacity [get] |
| The maximum number of entries this dictionary may contain.
|
|
int | Count [get] |
| Current number of key/value entries in the Dictionary.
|
|
A read-only version of NetworkDictionary<TKey,TValue>.
- Template Parameters
-
K | The type of the key. |
V | The type of the value. |
◆ TryGet()
bool TryGet |
( |
K |
key, |
|
|
out V |
value |
|
) |
| |
Attempts to get the value for a given key. If found, returns true.
- Parameters
-
key | The key to remove. |
value | Returns value of removed item. Returns default value if key did not exist. |
- Returns
- Returns true if key was found.