Lines Matching refs:ZipEntry

135 ZipEntry* ZipFile::getEntryByIndex(int idx) const  in getEntryByIndex()
146 ZipEntry* ZipFile::getEntryByName(const char* fileName) const in getEntryByName()
161 ZipEntry* pEntry = mEntries[idx]; in getEntryByName()
254 ZipEntry::getLongLE(&buf[i]) == EndOfCentralDir::kSignature) in readCentralDir()
309 ZipEntry* pEntry = new ZipEntry; in readCentralDir()
332 if (ZipEntry::getLongLE(checkBuf) != EndOfCentralDir::kSignature) { in readCentralDir()
360 ZipEntry** ppEntry) in addCommon()
362 ZipEntry* pEntry = NULL; in addCommon()
372 assert(compressionMethod == ZipEntry::kCompressDeflated || in addCommon()
373 compressionMethod == ZipEntry::kCompressStored); in addCommon()
394 pEntry = new ZipEntry; in addCommon()
414 if (sourceType == ZipEntry::kCompressStored) { in addCommon()
415 if (compressionMethod == ZipEntry::kCompressDeflated) { in addCommon()
437 compressionMethod = ZipEntry::kCompressStored; in addCommon()
444 if (compressionMethod == ZipEntry::kCompressStored) { in addCommon()
459 } else if (sourceType == ZipEntry::kCompressDeflated) { in addCommon()
462 assert(compressionMethod == ZipEntry::kCompressDeflated); in addCommon()
470 if (!scanResult || method != ZipEntry::kCompressDeflated) { in addCommon()
539 status_t ZipFile::add(const ZipFile* pSourceZip, const ZipEntry* pSourceEntry, in add()
540 int padding, ZipEntry** ppEntry) in add()
542 ZipEntry* pEntry = NULL; in add()
558 pEntry = new ZipEntry; in add()
600 if ((pSourceEntry->mLFH.mGPBitFlag & ZipEntry::kUsesDataDescr) != 0) in add()
601 copyLen += ZipEntry::kDataDescriptorLen; in add()
878 status_t ZipFile::remove(ZipEntry* pEntry) in remove()
919 ZipEntry* pEntry = mEntries[i]; in flush()
974 ZipEntry* pEntry = mEntries[i]; in crunchArchive()
992 assert(span >= ZipEntry::LocalFileHeader::kLFHLen); in crunchArchive()
1144 bool ZipFile::uncompress(const ZipEntry* pEntry, void* buf) const
1151 void* ZipFile::uncompress(const ZipEntry* entry) in uncompress()
1170 case ZipEntry::kCompressStored: { in uncompress()
1191 case ZipEntry::kCompressDeflated: { in uncompress()
1233 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) in readBuf()
1236 mDiskNumber = ZipEntry::getShortLE(&buf[0x04]); in readBuf()
1237 mDiskWithCentralDir = ZipEntry::getShortLE(&buf[0x06]); in readBuf()
1238 mNumEntries = ZipEntry::getShortLE(&buf[0x08]); in readBuf()
1239 mTotalNumEntries = ZipEntry::getShortLE(&buf[0x0a]); in readBuf()
1240 mCentralDirSize = ZipEntry::getLongLE(&buf[0x0c]); in readBuf()
1241 mCentralDirOffset = ZipEntry::getLongLE(&buf[0x10]); in readBuf()
1242 mCommentLen = ZipEntry::getShortLE(&buf[0x14]); in readBuf()
1266 ZipEntry::putLongLE(&buf[0x00], kSignature); in write()
1267 ZipEntry::putShortLE(&buf[0x04], mDiskNumber); in write()
1268 ZipEntry::putShortLE(&buf[0x06], mDiskWithCentralDir); in write()
1269 ZipEntry::putShortLE(&buf[0x08], mNumEntries); in write()
1270 ZipEntry::putShortLE(&buf[0x0a], mTotalNumEntries); in write()
1271 ZipEntry::putLongLE(&buf[0x0c], mCentralDirSize); in write()
1272 ZipEntry::putLongLE(&buf[0x10], mCentralDirOffset); in write()
1273 ZipEntry::putShortLE(&buf[0x14], mCommentLen); in write()