Lines Matching refs:mCachedOffset

71           mCachedOffset(0), mCachedSize(0), mCacheBufferSize(0) {}  in HeifDataSource()
104 off64_t mCachedOffset; member in android::HeifDataSource
129 if (offset < mCachedOffset) { in readAt()
133 mCachedOffset = offset; in readAt()
138 mCachedOffset = 0; in readAt()
147 if (mEOS && (offset < mCachedOffset || in readAt()
148 offset >= (off64_t)(mCachedOffset + mCachedSize))) { in readAt()
155 CHECK(offset >= mCachedOffset); in readAt()
172 if (offset + size <= mCachedOffset + mCachedSize) { in readAt()
173 memcpy(mMemory->unsecurePointer(), mCache.get() + offset - mCachedOffset, size); in readAt()
178 if ((off64_t)(offset + size) > mCachedOffset + kMaxCacheBufferSize) { in readAt()
193 if (newCachedOffset < mCachedOffset) { in readAt()
194 newCachedOffset = mCachedOffset; in readAt()
197 int64_t newCachedSize = (int64_t)(mCachedOffset + mCachedSize) - newCachedOffset; in readAt()
202 memcpy(dst, mCache.get() + newCachedOffset - mCachedOffset, newCachedSize); in readAt()
215 mCachedOffset = newCachedOffset; in readAt()
227 mCachedOffset = newCachedOffset; in readAt()
231 (long long)mCachedOffset, mCachedSize, mCacheBufferSize); in readAt()
235 while (offset + size > mCachedOffset + newCacheBufferSize) { in readAt()
246 (long long) mCachedOffset, mCachedSize, mCacheBufferSize); in readAt()
249 size_t bytesToRead = offset + size - mCachedOffset - mCachedSize; in readAt()
261 (long long) mCachedOffset, mCachedSize); in readAt()
264 int64_t bytesAvailable = mCachedOffset + mCachedSize - offset; in readAt()
271 memcpy(mMemory->unsecurePointer(), mCache.get() + offset - mCachedOffset, size); in readAt()