Go to the source code of this file.
Typedefs | |
typedef struct hashTable_s* | hashTable |
typedef unsigned int (* | hashFunctionType )(const void *string) |
typedef int (* | hashEqualityType )(const void *key1, const void *key2) |
Functions | |
unsigned int | hashFunctionString (const void *string) |
Return hash value of a string. More... | |
int | hashEqualityString (const void *key1, const void *key2) |
Compare two hash table entries for equality. More... | |
hashTable | htCreate (int numBuckets, int keySize, int freeData, hashFunctionType fn, hashEqualityType eq) |
Create hash table. More... | |
void | htFree (hashTable ht) |
Destroy hash table. More... | |
void | htAddEntry (hashTable ht, const void *key, const void *data) |
Add item to hash table. More... | |
int | htGetEntry (hashTable ht, const void *key, const void ***data, int *dataCount, const void **tableKey) |
Retrieve item from hash table. More... | |
int | htHasEntry (hashTable ht, const void *key) |
Check for key in hash table. More... |
Definition in file rpmhash.h.
|
|
|
|
|
|
|
Compare two hash table entries for equality.
|
|
Return hash value of a string.
|
|
Add item to hash table.
Definition at line 101 of file rpmhash.c. Referenced by doLookup(), and rpmRunTransactions().
|
|
Create hash table. If keySize > 0, the key is duplicated within the table (which costs memory, but may be useful anyway.
Definition at line 83 of file rpmhash.c. Referenced by fpCacheCreate(), and rpmRunTransactions().
|
|
Destroy hash table.
Definition at line 133 of file rpmhash.c. Referenced by fpCacheFree(), and rpmRunTransactions().
|
|
Retrieve item from hash table.
Definition at line 169 of file rpmhash.c. Referenced by cacheContainsDirectory(), and handleOverlappedFiles().
|
|
Check for key in hash table.
|