Home | History | Annotate | Download | only in zipalign

Lines Matching full:zipentry

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