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()
368 status_t ZipFile::addCommon(const char* fileName, const void* data, size_t size, in addCommon() argument
386 assert(mEntries.size() == mEOCD.mTotalNumEntries); in addCommon()
425 result = compressFpToFp(mZipFp, inputFp, data, size, &crc); in addCommon()
435 long src = inputFp ? ftell(inputFp) : size; in addCommon()
456 result = copyDataToFp(mZipFp, data, size, &crc); in addCommon()
466 uncompressedLen = inputFp ? ftell(inputFp) : size; in addCommon()
558 assert(mEntries.size() == mEOCD.mTotalNumEntries); in add()
664 assert(mEntries.size() == mEOCD.mTotalNumEntries); in addRecompress()
821 const void* data, size_t size, uint32_t* pCRC32) in copyDataToFp() argument
824 if (size > 0) { in copyDataToFp()
825 *pCRC32 = crc32(*pCRC32, (const unsigned char*)data, size); in copyDataToFp()
826 if (fwrite(data, 1, size, dstFp) != size) { in copyDataToFp()
827 ALOGW("fwrite %zu bytes failed, %s", size, strerror(errno)); in copyDataToFp()
890 const void* data, size_t size, uint32_t* pCRC32) in compressFpToFp() argument
907 crc = crc32(crc, (const unsigned char*)data, size); in compressFpToFp()
908 ZopfliDeflate(&options, 2, true, (const unsigned char*)data, size, &bp, in compressFpToFp()
1004 count = mEntries.size(); in flush()
1045 for (i = 0; i < (int) mEntries.size(); i++) { in crunchArchive()
1058 count = mEntries.size(); in crunchArchive()
1246 BufferWriter(void* buf, size_t size) : Writer(), in BufferWriter() argument
1247 buf_(reinterpret_cast<uint8_t*>(buf)), size_(size), bytes_written_(0) {} in BufferWriter()