MCPcopy Create free account
hub / github.com/couchbase/fleece / initTable

Method initTable

Fleece/Support/StringTable.cc:189–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected