• Home
  • Raw
  • Download

Lines Matching refs:ZipEntry

137 ZipEntry* ZipFile::getEntryByIndex(int idx) const  in getEntryByIndex()
148 ZipEntry* ZipFile::getEntryByName(const char* fileName) const in getEntryByName()
163 ZipEntry* pEntry = mEntries[idx]; in getEntryByName()
256 ZipEntry::getLongLE(&buf[i]) == EndOfCentralDir::kSignature) in readCentralDir()
311 ZipEntry* pEntry = new ZipEntry; in readCentralDir()
334 if (ZipEntry::getLongLE(checkBuf) != EndOfCentralDir::kSignature) { in readCentralDir()
362 ZipEntry** ppEntry) in addCommon()
364 ZipEntry* pEntry = NULL; in addCommon()
374 assert(compressionMethod == ZipEntry::kCompressDeflated || in addCommon()
375 compressionMethod == ZipEntry::kCompressStored); in addCommon()
396 pEntry = new ZipEntry; in addCommon()
416 if (sourceType == ZipEntry::kCompressStored) { in addCommon()
417 if (compressionMethod == ZipEntry::kCompressDeflated) { in addCommon()
439 compressionMethod = ZipEntry::kCompressStored; in addCommon()
446 if (compressionMethod == ZipEntry::kCompressStored) { in addCommon()
461 } else if (sourceType == ZipEntry::kCompressDeflated) { in addCommon()
464 assert(compressionMethod == ZipEntry::kCompressDeflated); in addCommon()
472 if (!scanResult || method != ZipEntry::kCompressDeflated) { in addCommon()
541 status_t ZipFile::add(const ZipFile* pSourceZip, const ZipEntry* pSourceEntry, in add()
542 int padding, ZipEntry** ppEntry) in add()
544 ZipEntry* pEntry = NULL; in add()
560 pEntry = new ZipEntry; in add()
602 if ((pSourceEntry->mLFH.mGPBitFlag & ZipEntry::kUsesDataDescr) != 0) in add()
603 copyLen += ZipEntry::kDataDescriptorLen; in add()
648 status_t ZipFile::addRecompress(const ZipFile* pSourceZip, const ZipEntry* pSourceEntry, in addRecompress()
649 ZipEntry** ppEntry) in addRecompress()
651 ZipEntry* pEntry = NULL; in addRecompress()
667 pEntry = new ZipEntry; in addRecompress()
722 pSourceEntry->getCRC32(), ZipEntry::kCompressDeflated); in addRecompress()
727 if ((pSourceEntry->mLFH.mGPBitFlag & ZipEntry::kUsesDataDescr) != 0) in addRecompress()
728 copyLen += ZipEntry::kDataDescriptorLen; in addRecompress()
955 status_t ZipFile::remove(ZipEntry* pEntry) in remove()
996 ZipEntry* pEntry = mEntries[i]; in flush()
1051 ZipEntry* pEntry = mEntries[i]; in crunchArchive()
1069 assert(span >= ZipEntry::LocalFileHeader::kLFHLen); in crunchArchive()
1221 bool ZipFile::uncompress(const ZipEntry* pEntry, void* buf) const
1228 void* ZipFile::uncompress(const ZipEntry* entry) const in uncompress()
1247 case ZipEntry::kCompressStored: { in uncompress()
1268 case ZipEntry::kCompressDeflated: { in uncompress()
1310 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) in readBuf()
1313 mDiskNumber = ZipEntry::getShortLE(&buf[0x04]); in readBuf()
1314 mDiskWithCentralDir = ZipEntry::getShortLE(&buf[0x06]); in readBuf()
1315 mNumEntries = ZipEntry::getShortLE(&buf[0x08]); in readBuf()
1316 mTotalNumEntries = ZipEntry::getShortLE(&buf[0x0a]); in readBuf()
1317 mCentralDirSize = ZipEntry::getLongLE(&buf[0x0c]); in readBuf()
1318 mCentralDirOffset = ZipEntry::getLongLE(&buf[0x10]); in readBuf()
1319 mCommentLen = ZipEntry::getShortLE(&buf[0x14]); in readBuf()
1343 ZipEntry::putLongLE(&buf[0x00], kSignature); in write()
1344 ZipEntry::putShortLE(&buf[0x04], mDiskNumber); in write()
1345 ZipEntry::putShortLE(&buf[0x06], mDiskWithCentralDir); in write()
1346 ZipEntry::putShortLE(&buf[0x08], mNumEntries); in write()
1347 ZipEntry::putShortLE(&buf[0x0a], mTotalNumEntries); in write()
1348 ZipEntry::putLongLE(&buf[0x0c], mCentralDirSize); in write()
1349 ZipEntry::putLongLE(&buf[0x10], mCentralDirOffset); in write()
1350 ZipEntry::putShortLE(&buf[0x14], mCommentLen); in write()