Lines Matching refs:fOffset
36 size_t fOffset; member in FrontBufferedStream
77 , fOffset(0) in FrontBufferedStream()
83 if (fOffset < fBufferedSoFar) { in isAtEnd()
94 if (fOffset <= fBufferSize) { in rewind()
95 fOffset = 0; in rewind()
102 SkASSERT(fOffset < fBufferedSoFar); in readFromBuffer()
106 const size_t bytesToCopy = SkTMin(size, fBufferedSoFar - fOffset); in readFromBuffer()
108 memcpy(dst, fBuffer + fOffset, bytesToCopy); in readFromBuffer()
113 fOffset += bytesToCopy; in readFromBuffer()
114 SkASSERT(fOffset <= fBufferedSoFar); in readFromBuffer()
121 SkASSERT(fOffset >= fBufferedSoFar); in bufferAndWriteTo()
126 char* buffer = fBuffer + fOffset; in bufferAndWriteTo()
130 fOffset = fBufferedSoFar; in bufferAndWriteTo()
144 SkASSERT(fBufferSize == fBufferedSoFar && fOffset >= fBufferSize); in readDirectlyFromStream()
147 fOffset += bytesReadDirectly; in readDirectlyFromStream()
160 const size_t start = fOffset; in peek()
170 nonConstThis->fOffset = start; in peek()
178 const size_t start = fOffset; in read()
181 if (fOffset < fBufferedSoFar) { in read()
187 SkASSERT(size + (fOffset - start) == totalSize); in read()
201 SkASSERT(size + (fOffset - start) == totalSize); in read()
210 SkASSERT(size + (fOffset - start) == totalSize); in read()
213 return fOffset - start; in read()