Home | History | Annotate | Download | only in libziparchive

Lines Matching refs:hash_table

306   ZipEntryName* hash_table;
314 hash_table(NULL) {}
324 free(hash_table);
402 static int64_t EntryToIndex(const ZipEntryName* hash_table,
409 while (hash_table[ent].name != NULL) {
410 if (hash_table[ent].name_length == length &&
411 memcmp(hash_table[ent].name, name, length) == 0) {
425 static int32_t AddToHash(ZipEntryName *hash_table, const uint64_t hash_table_size,
434 while (hash_table[ent].name != NULL) {
435 if (hash_table[ent].name_length == length &&
436 memcmp(hash_table[ent].name, name, length) == 0) {
444 hash_table[ent].name = name;
445 hash_table[ent].name_length = length;
610 archive->hash_table = (ZipEntryName*) calloc(archive->hash_table_size,
650 const int add_result = AddToHash(archive->hash_table,
759 const uint16_t nameLen = archive->hash_table[ent].name_length;
760 const char* name = archive->hash_table[ent].name;
901 if (archive == NULL || archive->hash_table == NULL) {
927 const int64_t ent = EntryToIndex(archive->hash_table,
945 if (archive == NULL || archive->hash_table == NULL) {
952 const ZipEntryName *hash_table = archive->hash_table;
955 if (hash_table[i].name != NULL &&
957 (memcmp(handle->prefix, hash_table[i].name, handle->prefix_len) == 0))) {
961 name->name = hash_table[i].name;
962 hash_table[i].name_length;