get returns the value for the given key.
(key K, shift uint, keyHash uint32, h Hasher[K])
| 903 | |
| 904 | // get returns the value for the given key. |
| 905 | func (n *mapArrayNode[K, V]) get(key K, shift uint, keyHash uint32, h Hasher[K]) (value V, ok bool) { |
| 906 | i := n.indexOf(key, h) |
| 907 | if i == -1 { |
| 908 | return value, false |
| 909 | } |
| 910 | return n.entries[i].value, true |
| 911 | } |
| 912 | |
| 913 | // set inserts or updates the value for a given key. If the key is inserted and |
| 914 | // the new size crosses the max size threshold, a bitmap indexed node is returned. |