| 187 | |
| 188 | |
| 189 | void StringTable::initTable(size_t size, hash_t *hashes, entry_t *entries) { |
| 190 | _size = size; |
| 191 | _sizeMask = size - 1; |
| 192 | _maxDistance = 0; |
| 193 | _capacity = (size_t)(size * kMaxLoad); |
| 194 | _hashes = hashes; |
| 195 | _entries = entries; |
| 196 | memset(_hashes, 0, size * sizeof(hash_t)); |
| 197 | } |
| 198 | |
| 199 | |
| 200 | void StringTable::allocTable(size_t size) { |
nothing calls this directly
no outgoing calls
no test coverage detected