Searched refs:HashTable (Results 1 – 4 of 4) sorted by relevance
/bootable/recovery/minzip/ |
D | Hash.h | 61 typedef struct HashTable { struct 67 } HashTable; argument 77 HashTable* mzHashTableCreate(size_t initialSize, HashFreeFunc freeFunc); 90 void mzHashTableClear(HashTable* pHashTable); 95 void mzHashTableFree(HashTable* pHashTable); 100 INLINE int mzHashTableNumEntries(HashTable* pHashTable) { in mzHashTableNumEntries() 107 INLINE int mzHashTableMemUsage(HashTable* pHashTable) { in mzHashTableMemUsage() 108 return sizeof(HashTable) + pHashTable->tableSize * sizeof(HashEntry); in mzHashTableMemUsage() 120 void* mzHashTableLookup(HashTable* pHashTable, unsigned int itemHash, void* item, 127 bool mzHashTableRemove(HashTable* pHashTable, unsigned int hash, void* item); [all …]
|
D | Hash.c | 51 HashTable* mzHashTableCreate(size_t initialSize, HashFreeFunc freeFunc) in mzHashTableCreate() 53 HashTable* pHashTable; in mzHashTableCreate() 57 pHashTable = (HashTable*) malloc(sizeof(*pHashTable)); in mzHashTableCreate() 65 (HashEntry*) calloc((size_t)pHashTable->tableSize, sizeof(HashTable)); in mzHashTableCreate() 77 void mzHashTableClear(HashTable* pHashTable) in mzHashTableClear() 102 void mzHashTableFree(HashTable* pHashTable) in mzHashTableFree() 115 static int countTombStones(HashTable* pHashTable) in countTombStones() 137 static bool resizeHash(HashTable* pHashTable, int newSize) in resizeHash() 145 pNewEntries = (HashEntry*) calloc(newSize, sizeof(HashTable)); in resizeHash() 179 void* mzHashTableLookup(HashTable* pHashTable, unsigned int itemHash, void* item, in mzHashTableLookup() [all …]
|
D | Zip.h | 52 HashTable* pHash; // maps file name to ZipEntry
|
D | Zip.c | 146 static void addEntryToHashTable(HashTable* pHash, ZipEntry* pEntry) in addEntryToHashTable()
|