Home | History | Annotate | Download | only in utils

Lines Matching refs:fOffset

25     virtual size_t getPosition() const SK_OVERRIDE { return fOffset; }
38 size_t fOffset;
49 // dst, if non-NULL. Updates fOffset. Assumes that fOffset is less
54 // NULL. Updates fOffset and fBufferedSoFar. Assumes that fOffset is
59 // NULL. Updates fOffset. Assumes fOffset is at or beyond the buffered
77 , fOffset(0)
83 if (fOffset < fBufferedSoFar) {
94 if (fOffset <= fBufferSize) {
95 fOffset = 0;
102 SkASSERT(fOffset < fBufferedSoFar);
106 const size_t bytesToCopy = SkTMin(size, fBufferedSoFar - fOffset);
108 memcpy(dst, fBuffer + fOffset, bytesToCopy);
111 // Update fOffset to the new position. It is guaranteed to be
113 fOffset += bytesToCopy;
114 SkASSERT(fOffset <= fBufferedSoFar);
121 SkASSERT(fOffset >= fBufferedSoFar);
125 char* buffer = fBuffer + fOffset;
129 fOffset = fBufferedSoFar;
143 SkASSERT(fBufferSize == fBufferedSoFar && fOffset >= fBufferSize);
146 fOffset += bytesReadDirectly;
161 const size_t start = fOffset;
164 if (fOffset < fBufferedSoFar) {
170 SkASSERT(size + (fOffset - start) == totalSize);
184 SkASSERT(size + (fOffset - start) == totalSize);
193 SkASSERT(size + (fOffset - start) == totalSize);
196 return fOffset - start;