Searched refs:pEntry (Results 1 – 4 of 4) sorted by relevance
/bootable/recovery/minzip/ |
D | Zip.h | 104 mzGetZipEntryIndex(const ZipArchive *pArchive, const ZipEntry *pEntry) { in mzGetZipEntryIndex() argument 105 return pEntry - pArchive->pEntries; in mzGetZipEntryIndex() 111 INLINE UnterminatedString mzGetZipEntryFileName(const ZipEntry* pEntry) { in mzGetZipEntryFileName() argument 113 ret.str = pEntry->fileName; in mzGetZipEntryFileName() 114 ret.len = pEntry->fileNameLen; in mzGetZipEntryFileName() 117 INLINE long mzGetZipEntryOffset(const ZipEntry* pEntry) { in mzGetZipEntryOffset() argument 118 return pEntry->offset; in mzGetZipEntryOffset() 120 INLINE long mzGetZipEntryUncompLen(const ZipEntry* pEntry) { in mzGetZipEntryUncompLen() argument 121 return pEntry->uncompLen; in mzGetZipEntryUncompLen() 123 INLINE long mzGetZipEntryModTime(const ZipEntry* pEntry) { in mzGetZipEntryModTime() argument [all …]
|
D | Zip.c | 91 static void dumpEntry(const ZipEntry* pEntry) 93 LOGI(" %p '%.*s'\n", pEntry->fileName,pEntry->fileNameLen,pEntry->fileName); 94 LOGI(" off=%ld comp=%ld uncomp=%ld how=%d\n", pEntry->offset, 95 pEntry->compLen, pEntry->uncompLen, pEntry->compression); 146 static void addEntryToHashTable(HashTable* pHash, ZipEntry* pEntry) in addEntryToHashTable() argument 148 unsigned int itemHash = computeHash(pEntry->fileName, pEntry->fileNameLen); in addEntryToHashTable() 152 itemHash, pEntry, hashcmpZipEntry, true); in addEntryToHashTable() 153 if (found != pEntry) { in addEntryToHashTable() 250 ZipEntry* pEntry; in parseZipArchive() local 323 pEntry = &pArchive->pEntries[target]; in parseZipArchive() [all …]
|
D | Hash.c | 182 HashEntry* pEntry; in mzHashTableLookup() local 191 pEntry = &pHashTable->pEntries[itemHash & (pHashTable->tableSize-1)]; in mzHashTableLookup() 193 while (pEntry->data != NULL) { in mzHashTableLookup() 194 if (pEntry->data != HASH_TOMBSTONE && in mzHashTableLookup() 195 pEntry->hashValue == itemHash && in mzHashTableLookup() 196 (*cmpFunc)(pEntry->data, item) == 0) in mzHashTableLookup() 203 pEntry++; in mzHashTableLookup() 204 if (pEntry == pEnd) { /* wrap around to start */ in mzHashTableLookup() 207 pEntry = pHashTable->pEntries; in mzHashTableLookup() 213 if (pEntry->data == NULL) { in mzHashTableLookup() [all …]
|
/bootable/recovery/ |
D | verifier.c | 29 static char *slurpEntry(const ZipArchive *pArchive, const ZipEntry *pEntry) { in slurpEntry() argument 30 if (!mzIsZipEntryIntact(pArchive, pEntry)) { in slurpEntry() 31 UnterminatedString fn = mzGetZipEntryFileName(pEntry); in slurpEntry() 36 int len = mzGetZipEntryUncompLen(pEntry); in slurpEntry() 39 UnterminatedString fn = mzGetZipEntryFileName(pEntry); in slurpEntry() 44 if (!mzReadZipEntry(pArchive, pEntry, buf, len)) { in slurpEntry() 45 UnterminatedString fn = mzGetZipEntryFileName(pEntry); in slurpEntry() 78 static bool digestEntry(const ZipArchive *pArchive, const ZipEntry *pEntry, in digestEntry() argument 85 if (!mzProcessZipEntryContents(pArchive, pEntry, updateHash, &context)) { in digestEntry() 86 UnterminatedString fn = mzGetZipEntryFileName(pEntry); in digestEntry() [all …]
|