Home
last modified time | relevance | path

Searched refs:pArchive (Results 1 – 2 of 2) sorted by relevance

/bootable/recovery/minzip/
DZip.h64 int mzOpenZipArchive(const char* fileName, ZipArchive* pArchive);
72 void mzCloseZipArchive(ZipArchive* pArchive);
78 const ZipEntry* mzFindZipEntry(const ZipArchive* pArchive,
84 INLINE unsigned int mzZipEntryCount(const ZipArchive* pArchive) { in mzZipEntryCount() argument
85 return pArchive->numEntries; in mzZipEntryCount()
92 mzGetZipEntryAt(const ZipArchive* pArchive, unsigned int index) in mzGetZipEntryAt() argument
94 if (index < pArchive->numEntries) { in mzGetZipEntryAt()
95 return pArchive->pEntries + index; in mzGetZipEntryAt()
104 mzGetZipEntryIndex(const ZipArchive *pArchive, const ZipEntry *pEntry) { in mzGetZipEntryIndex() argument
105 return pEntry - pArchive->pEntries; in mzGetZipEntryIndex()
[all …]
DZip.c187 static bool parseZipArchive(ZipArchive* pArchive, const MemMapping* pMap) in parseZipArchive() argument
242 pArchive->numEntries = numEntries; in parseZipArchive()
243 pArchive->pEntries = (ZipEntry*) calloc(numEntries, sizeof(ZipEntry)); in parseZipArchive()
244 pArchive->pHash = mzHashTableCreate(mzHashSize(numEntries), NULL); in parseZipArchive()
245 if (pArchive->pEntries == NULL || pArchive->pHash == NULL) in parseZipArchive()
293 if (pArchive->pEntries[mid].fileNameLen < fileNameLen) { in parseZipArchive()
294 diffLen = pArchive->pEntries[mid].fileNameLen; in parseZipArchive()
298 diff = strncmp(pArchive->pEntries[mid].fileName, fileName, in parseZipArchive()
301 diff = pArchive->pEntries[mid].fileNameLen - fileNameLen; in parseZipArchive()
319 memmove(pArchive->pEntries + target + 1, in parseZipArchive()
[all …]