MCPcopy Create free account
hub / github.com/GregoryFaust/samblaster / makeHashTable

Function makeHashTable

sbhash.cpp:201–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201hashTable_t * makeHashTable()
202{
203 hashTable_t * ht = (hashTable_t *)malloc(sizeof(hashTable_t));
204 if (ht == NULL) fatalError("samblaster: unable to allocate hash table.\n");
205 hashTableInit(ht, hashTableSizes[0]);
206 return ht;
207}
208
209// Use a C++ style destructor so that arrays of hash tables will be cleaned up automagically.
210hashTable::~hashTable()

Callers

nothing calls this directly

Calls 2

fatalErrorFunction · 0.85
hashTableInitFunction · 0.85

Tested by

no test coverage detected