Lines Matching refs:fOffset
43 size_t fOffset; member in __anon027e42c60111::FrontBufferedStream
97 , fOffset(0) in FrontBufferedStream()
110 if (fOffset < fBufferedSoFar) { in isAtEnd()
121 if (fOffset <= fBufferSize) { in rewind()
122 fOffset = 0; in rewind()
129 SkASSERT(fOffset < fBufferedSoFar); in readFromBuffer()
133 const size_t bytesToCopy = std::min(size, fBufferedSoFar - fOffset); in readFromBuffer()
135 memcpy(dst, fBuffer + fOffset, bytesToCopy); in readFromBuffer()
140 fOffset += bytesToCopy; in readFromBuffer()
141 SkASSERT(fOffset <= fBufferedSoFar); in readFromBuffer()
148 SkASSERT(fOffset >= fBufferedSoFar); in bufferAndWriteTo()
153 char* buffer = fBuffer + fOffset; in bufferAndWriteTo()
157 fOffset = fBufferedSoFar; in bufferAndWriteTo()
171 SkASSERT(fBufferSize == fBufferedSoFar && fOffset >= fBufferSize); in readDirectlyFromStream()
174 fOffset += bytesReadDirectly; in readDirectlyFromStream()
188 const size_t start = fOffset; in peek()
198 nonConstThis->fOffset = start; in peek()
206 const size_t start = fOffset; in read()
209 if (fOffset < fBufferedSoFar) { in read()
215 SkASSERT(size + (fOffset - start) == totalSize); in read()
229 SkASSERT(size + (fOffset - start) == totalSize); in read()
238 SkASSERT(size + (fOffset - start) == totalSize); in read()
241 return fOffset - start; in read()