Lines Matching refs:fCurr
24 SkReader32() : fCurr(nullptr), fStop(nullptr), fBase(nullptr) {} in SkReader32()
33 fBase = fCurr = (const char*)data; in setMemory()
38 size_t offset() const { return fCurr - fBase; } in offset()
39 bool eof() const { return fCurr >= fStop; } in eof()
41 const void* peek() const { return fCurr; } in peek()
43 size_t available() const { return fStop - fCurr; } in available()
46 void rewind() { fCurr = fBase; } in rewind()
51 fCurr = fBase + offset; in setOffset()
57 SkASSERT(ptr_align_4(fCurr)); in readInt()
58 int32_t value = *(const int32_t*)fCurr; in readInt()
59 fCurr += sizeof(value); in readInt()
60 SkASSERT(fCurr <= fStop); in readInt()
68 ptr = *(void**)fCurr; in readPtr()
70 memcpy(&ptr, fCurr, sizeof(void*)); in readPtr()
72 fCurr += sizeof(void*); in readPtr()
77 SkASSERT(ptr_align_4(fCurr)); in readScalar()
78 SkScalar value = *(const SkScalar*)fCurr; in readScalar()
79 fCurr += sizeof(value); in readScalar()
80 SkASSERT(fCurr <= fStop); in readScalar()
85 SkASSERT(ptr_align_4(fCurr)); in skip()
86 const void* addr = fCurr; in skip()
87 fCurr += SkAlign4(size); in skip()
88 SkASSERT(fCurr <= fStop); in skip()
99 SkASSERT(ptr_align_4(fCurr)); in read()
100 sk_careful_memcpy(dst, fCurr, size); in read()
101 fCurr += SkAlign4(size); in read()
102 SkASSERT(fCurr <= fStop); in read()
158 const char* fCurr; // current position within buffer variable