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()
538 status_t ZipFile::add(const ZipFile* pSourceZip, const ZipEntry* pSourceEntry, in add()
539 int padding, ZipEntry** ppEntry) in add()
541 ZipEntry* pEntry = NULL; in add()
557 pEntry = new ZipEntry; in add()
599 if ((pSourceEntry->mLFH.mGPBitFlag & ZipEntry::kUsesDataDescr) != 0) in add()
600 copyLen += ZipEntry::kDataDescriptorLen; in add()
875 status_t ZipFile::remove(ZipEntry* pEntry) in remove()
916 ZipEntry* pEntry = mEntries[i]; in flush()
971 ZipEntry* pEntry = mEntries[i]; in crunchArchive()
989 assert(span >= ZipEntry::LocalFileHeader::kLFHLen); in crunchArchive()
1141 bool ZipFile::uncompress(const ZipEntry* pEntry, void* buf) const
1148 void* ZipFile::uncompress(const ZipEntry* entry) in uncompress()
1167 case ZipEntry::kCompressStored: { in uncompress()
1188 case ZipEntry::kCompressDeflated: { in uncompress()
1230 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) in readBuf()
1233 mDiskNumber = ZipEntry::getShortLE(&buf[0x04]); in readBuf()
1234 mDiskWithCentralDir = ZipEntry::getShortLE(&buf[0x06]); in readBuf()
1235 mNumEntries = ZipEntry::getShortLE(&buf[0x08]); in readBuf()
1236 mTotalNumEntries = ZipEntry::getShortLE(&buf[0x0a]); in readBuf()
1237 mCentralDirSize = ZipEntry::getLongLE(&buf[0x0c]); in readBuf()
1238 mCentralDirOffset = ZipEntry::getLongLE(&buf[0x10]); in readBuf()
1239 mCommentLen = ZipEntry::getShortLE(&buf[0x14]); in readBuf()
1263 ZipEntry::putLongLE(&buf[0x00], kSignature); in write()
1264 ZipEntry::putShortLE(&buf[0x04], mDiskNumber); in write()
1265 ZipEntry::putShortLE(&buf[0x06], mDiskWithCentralDir); in write()
1266 ZipEntry::putShortLE(&buf[0x08], mNumEntries); in write()
1267 ZipEntry::putShortLE(&buf[0x0a], mTotalNumEntries); in write()
1268 ZipEntry::putLongLE(&buf[0x0c], mCentralDirSize); in write()
1269 ZipEntry::putLongLE(&buf[0x10], mCentralDirOffset); in write()
1270 ZipEntry::putShortLE(&buf[0x14], mCommentLen); in write()