Lines Matching refs:size
139 if (idx < 0 || idx >= (int) mEntries.size()) in getEntryByIndex()
162 for (idx = mEntries.size()-1; idx >= 0; idx--) { in getEntryByName()
179 int count = mEntries.size(); in discardEntries()
360 status_t ZipFile::addCommon(const char* fileName, const void* data, size_t size, in addCommon() argument
379 assert(mEntries.size() == mEOCD.mTotalNumEntries); in addCommon()
419 result = compressFpToFp(mZipFp, inputFp, data, size, &crc); in addCommon()
429 long src = inputFp ? ftell(inputFp) : size; in addCommon()
450 result = copyDataToFp(mZipFp, data, size, &crc); in addCommon()
460 uncompressedLen = inputFp ? ftell(inputFp) : size; in addCommon()
553 assert(mEntries.size() == mEOCD.mTotalNumEntries); in add()
660 assert(mEntries.size() == mEOCD.mTotalNumEntries); in addRecompress()
814 const void* data, size_t size, unsigned long* pCRC32) in copyDataToFp() argument
819 if (size > 0) { in copyDataToFp()
820 *pCRC32 = crc32(*pCRC32, (const unsigned char*)data, size); in copyDataToFp()
821 if (fwrite(data, 1, size, dstFp) != size) { in copyDataToFp()
822 ALOGD("fwrite %d bytes failed\n", (int) size); in copyDataToFp()
881 const void* data, size_t size, unsigned long* pCRC32) in compressFpToFp() argument
898 crc = crc32(crc, (const unsigned char*)data, size); in compressFpToFp()
899 ZopfliDeflate(&options, 2, true, (const unsigned char*)data, size, &bp, in compressFpToFp()
994 count = mEntries.size(); in flush()
1035 for (i = 0; i < (int) mEntries.size(); i++) { in crunchArchive()
1048 count = mEntries.size(); in crunchArchive()