Lines Matching refs:fBufferedSoFar
39 size_t fBufferedSoFar; member in FrontBufferedStream
78 , fBufferedSoFar(0) in FrontBufferedStream()
83 if (fOffset < fBufferedSoFar) { in isAtEnd()
102 SkASSERT(fOffset < fBufferedSoFar); in readFromBuffer()
106 const size_t bytesToCopy = SkTMin(size, fBufferedSoFar - fOffset); in readFromBuffer()
114 SkASSERT(fOffset <= fBufferedSoFar); in readFromBuffer()
121 SkASSERT(fOffset >= fBufferedSoFar); in bufferAndWriteTo()
125 const size_t bytesToBuffer = SkTMin(size, fBufferSize - fBufferedSoFar); in bufferAndWriteTo()
129 fBufferedSoFar += buffered; in bufferAndWriteTo()
130 fOffset = fBufferedSoFar; in bufferAndWriteTo()
131 SkASSERT(fBufferedSoFar <= fBufferSize); in bufferAndWriteTo()
144 SkASSERT(fBufferSize == fBufferedSoFar && fOffset >= fBufferSize); in readDirectlyFromStream()
181 if (fOffset < fBufferedSoFar) { in read()
195 if (size > 0 && fBufferedSoFar < fBufferSize && !fStream->isAtEnd()) { in read()