Lines Matching refs:mCachedSize
54 mCachedOffset(0), mCachedSize(0), mCacheBufferSize(0) {} in HeifDataSource()
91 size_t mCachedSize; member in android::HeifDataSource
120 mCachedSize = 0; in readAt()
125 mCachedSize = 0; in readAt()
134 offset >= (off64_t)(mCachedOffset + mCachedSize))) { in readAt()
158 if (offset + size <= mCachedOffset + mCachedSize) { in readAt()
183 int64_t newCachedSize = (int64_t)(mCachedOffset + mCachedSize) - newCachedOffset; in readAt()
202 mCachedSize = 0; in readAt()
214 mCachedSize = newCachedSize; in readAt()
217 (long long)mCachedOffset, mCachedSize, mCacheBufferSize); in readAt()
227 memcpy(newCache, mCache.get(), mCachedSize); in readAt()
232 (long long) mCachedOffset, mCachedSize, mCacheBufferSize); in readAt()
235 size_t bytesToRead = offset + size - mCachedOffset - mCachedSize; in readAt()
236 size_t bytesRead = mStream->read(mCache.get() + mCachedSize, bytesToRead); in readAt()
245 mCachedSize += bytesRead; in readAt()
247 (long long) mCachedOffset, mCachedSize); in readAt()
250 int64_t bytesAvailable = mCachedOffset + mCachedSize - offset; in readAt()