Lines Matching refs:ptr
294 const u1* ptr = cdPtr; in parseZipArchive() local
297 if (get4LE(ptr) != kCDESignature) { in parseZipArchive()
301 if (ptr + kCDELen > cdPtr + cdLength) { in parseZipArchive()
306 long localHdrOffset = (long) get4LE(ptr + kCDELocalOffset); in parseZipArchive()
313 fileNameLen = get2LE(ptr + kCDENameLen); in parseZipArchive()
314 extraLen = get2LE(ptr + kCDEExtraLen); in parseZipArchive()
315 commentLen = get2LE(ptr + kCDECommentLen); in parseZipArchive()
318 hash = computeHash((const char*)ptr + kCDELen, fileNameLen); in parseZipArchive()
319 addToHash(pArchive, (const char*)ptr + kCDELen, fileNameLen, hash); in parseZipArchive()
321 ptr += kCDELen + fileNameLen + extraLen + commentLen; in parseZipArchive()
322 if ((size_t)(ptr - cdPtr) > cdLength) { in parseZipArchive()
324 (int) (ptr - cdPtr), cdLength, i); in parseZipArchive()
494 const unsigned char* ptr = (const unsigned char*) in dexZipGetEntryInfo() local
498 ptr -= kCDELen; in dexZipGetEntryInfo()
500 int method = get2LE(ptr + kCDEMethod); in dexZipGetEntryInfo()
505 *pModWhen = get4LE(ptr + kCDEModWhen); in dexZipGetEntryInfo()
507 *pCrc32 = get4LE(ptr + kCDECRC); in dexZipGetEntryInfo()
509 size_t compLen = get4LE(ptr + kCDECompLen); in dexZipGetEntryInfo()
512 size_t uncompLen = get4LE(ptr + kCDEUncompLen); in dexZipGetEntryInfo()
532 long localHdrOffset = (long) get4LE(ptr + kCDELocalOffset); in dexZipGetEntryInfo()