Lines Matching refs:ptr

190     const unsigned char* ptr;  in parseZipArchive()  local
212 ptr = pArchive->addr + pArchive->length - ENDHDR; in parseZipArchive()
214 while (ptr >= (const unsigned char*) pArchive->addr) { in parseZipArchive()
215 if (*ptr == (ENDSIG & 0xff) && get4LE(ptr) == ENDSIG) in parseZipArchive()
217 ptr--; in parseZipArchive()
219 if (ptr < (const unsigned char*) pArchive->addr) { in parseZipArchive()
229 numEntries = get2LE(ptr + ENDSUB); in parseZipArchive()
230 cdOffset = get4LE(ptr + ENDOFF); in parseZipArchive()
248 ptr = pArchive->addr + cdOffset; in parseZipArchive()
255 if (ptr + CENHDR > (const unsigned char*)pArchive->addr + pArchive->length) { in parseZipArchive()
259 if (get4LE(ptr) != CENSIG) { in parseZipArchive()
264 localHdrOffset = get4LE(ptr + CENOFF); in parseZipArchive()
265 fileNameLen = get2LE(ptr + CENNAM); in parseZipArchive()
266 extraLen = get2LE(ptr + CENEXT); in parseZipArchive()
267 commentLen = get2LE(ptr + CENCOM); in parseZipArchive()
268 fileName = (const char*)ptr + CENHDR; in parseZipArchive()
333 pEntry->compLen = get4LE(ptr + CENSIZ); in parseZipArchive()
334 pEntry->uncompLen = get4LE(ptr + CENLEN); in parseZipArchive()
335 pEntry->compression = get2LE(ptr + CENHOW); in parseZipArchive()
336 pEntry->modTime = get4LE(ptr + CENTIM); in parseZipArchive()
337 pEntry->crc32 = get4LE(ptr + CENCRC); in parseZipArchive()
341 pEntry->versionMadeBy = get2LE(ptr + CENVEM); in parseZipArchive()
349 pEntry->externalFileAttributes = get4LE(ptr + CENATX); in parseZipArchive()
387 ptr += CENHDR + fileNameLen + extraLen + commentLen; in parseZipArchive()