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
378 assert(mEntries.size() == mEOCD.mTotalNumEntries); in addCommon()
417 result = compressFpToFp(mZipFp, inputFp, data, size, &crc); in addCommon()
427 long src = inputFp ? ftell(inputFp) : size; in addCommon()
448 result = copyDataToFp(mZipFp, data, size, &crc); in addCommon()
458 uncompressedLen = inputFp ? ftell(inputFp) : size; in addCommon()
524 assert(mEntries.size() == mEOCD.mTotalNumEntries); in add()
631 assert(mEntries.size() == mEOCD.mTotalNumEntries); in addRecompress()
785 const void* data, size_t size, uint32_t* pCRC32) in copyDataToFp() argument
788 if (size > 0) { in copyDataToFp()
789 *pCRC32 = crc32(*pCRC32, (const unsigned char*)data, size); in copyDataToFp()
790 if (fwrite(data, 1, size, dstFp) != size) { in copyDataToFp()
791 ALOGD("fwrite %d bytes failed\n", (int) size); in copyDataToFp()
850 const void* data, size_t size, uint32_t* pCRC32) in compressFpToFp() argument
867 crc = crc32(crc, (const unsigned char*)data, size); in compressFpToFp()
868 ZopfliDeflate(&options, 2, true, (const unsigned char*)data, size, &bp, in compressFpToFp()
965 count = mEntries.size(); in flush()
1006 for (i = 0; i < (int) mEntries.size(); i++) { in crunchArchive()
1019 count = mEntries.size(); in crunchArchive()
1200 BufferWriter(void* buf, size_t size) : Writer(), in BufferWriter() argument
1201 buf_(reinterpret_cast<uint8_t*>(buf)), size_(size), bytes_written_(0) {} in BufferWriter()