Lines Matching refs:mCachedOffset

54           mCachedOffset(0), mCachedSize(0), mCacheBufferSize(0) {}  in HeifDataSource()
90 off64_t mCachedOffset; member in android::HeifDataSource
115 if (offset < mCachedOffset) { in readAt()
119 mCachedOffset = offset; in readAt()
124 mCachedOffset = 0; in readAt()
133 if (mEOS && (offset < mCachedOffset || in readAt()
134 offset >= (off64_t)(mCachedOffset + mCachedSize))) { in readAt()
141 CHECK(offset >= mCachedOffset); in readAt()
158 if (offset + size <= mCachedOffset + mCachedSize) { in readAt()
159 memcpy(mMemory->pointer(), mCache.get() + offset - mCachedOffset, size); in readAt()
164 if ((off64_t)(offset + size) > mCachedOffset + kMaxCacheBufferSize) { in readAt()
179 if (newCachedOffset < mCachedOffset) { in readAt()
180 newCachedOffset = mCachedOffset; in readAt()
183 int64_t newCachedSize = (int64_t)(mCachedOffset + mCachedSize) - newCachedOffset; in readAt()
188 memcpy(dst, mCache.get() + newCachedOffset - mCachedOffset, newCachedSize); in readAt()
201 mCachedOffset = newCachedOffset; in readAt()
213 mCachedOffset = newCachedOffset; in readAt()
217 (long long)mCachedOffset, mCachedSize, mCacheBufferSize); in readAt()
221 while (offset + size > mCachedOffset + newCacheBufferSize) { in readAt()
232 (long long) mCachedOffset, mCachedSize, mCacheBufferSize); in readAt()
235 size_t bytesToRead = offset + size - mCachedOffset - mCachedSize; in readAt()
247 (long long) mCachedOffset, mCachedSize); in readAt()
250 int64_t bytesAvailable = mCachedOffset + mCachedSize - offset; in readAt()
257 memcpy(mMemory->pointer(), mCache.get() + offset - mCachedOffset, size); in readAt()