Lines Matching refs:mCachedOffset

54           mCachedOffset(0), mCachedSize(0), mCacheBufferSize(0) {}  in HeifDataSource()
87 off64_t mCachedOffset; member in android::HeifDataSource
112 if (offset < mCachedOffset) { in readAt()
116 mCachedOffset = offset; in readAt()
121 mCachedOffset = 0; in readAt()
130 if (mEOS && (offset < mCachedOffset || in readAt()
131 offset >= (off64_t)(mCachedOffset + mCachedSize))) { in readAt()
138 CHECK(offset >= mCachedOffset); in readAt()
155 if (offset + size <= mCachedOffset + mCachedSize) { in readAt()
156 memcpy(mMemory->pointer(), mCache.get() + offset - mCachedOffset, size); in readAt()
161 if ((off64_t)(offset + size) > mCachedOffset + kMaxCacheBufferSize) { in readAt()
176 if (newCachedOffset < mCachedOffset) { in readAt()
177 newCachedOffset = mCachedOffset; in readAt()
180 int64_t newCachedSize = (int64_t)(mCachedOffset + mCachedSize) - newCachedOffset; in readAt()
185 memcpy(dst, mCache.get() + newCachedOffset - mCachedOffset, newCachedSize); in readAt()
198 mCachedOffset = newCachedOffset; in readAt()
210 mCachedOffset = newCachedOffset; in readAt()
214 (long long)mCachedOffset, mCachedSize, mCacheBufferSize); in readAt()
218 while (offset + size > mCachedOffset + newCacheBufferSize) { in readAt()
229 (long long) mCachedOffset, mCachedSize, mCacheBufferSize); in readAt()
232 size_t bytesToRead = offset + size - mCachedOffset - mCachedSize; in readAt()
244 (long long) mCachedOffset, mCachedSize); in readAt()
247 int64_t bytesAvailable = mCachedOffset + mCachedSize - offset; in readAt()
254 memcpy(mMemory->pointer(), mCache.get() + offset - mCachedOffset, size); in readAt()