Photon Fusion
2.0.8
A read-only version of NetworkDictionary<TKey,TValue>. More...
Public Member Functions | |
| 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. More... | |
| 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. More... | |
Public Attributes | |
| 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 |
Static Public Attributes | |
| const int | FREE_COUNT_OFFSET = 1 |
| const int | FREE_OFFSET = 0 |
| const int | INVALID_ENTRY = 0 |
| const int | USED_COUNT_OFFSET = 2 |
Properties | |
| int | _free [get] |
| int | _freeCount [get] |
| int | _usedCount [get] |
| int | Capacity [get] |
| The maximum number of entries this dictionary may contain. More... | |
| int | Count [get] |
| Current number of key/value entries in the Dictionary. More... | |
A read-only version of NetworkDictionary<TKey,TValue>.
| K | The type of the key. |
| V | The type of the value. |
| V Get | ( | K | key | ) |
Returns the value for the given key. Will throw an error if the key is not found.
| bool TryGet | ( | K | key, |
| out V | value | ||
| ) |
Attempts to get the value for a given key. If found, returns true.
| key | The key to remove. |
| value | Returns value of removed item. Returns default value if key did not exist. |
|
get |
The maximum number of entries this dictionary may contain.
|
get |
Current number of key/value entries in the Dictionary.