Lines Matching defs:offset
39 // return the current offset (will always be a multiple of 4)
61 size_t offset = fUsed;
67 return (uint32_t*)(fData + offset);
71 * Read a T record at offset, which must be a multiple of 4. Only legal if the record
75 const T& readTAt(size_t offset) const {
76 SkASSERT(SkAlign4(offset) == offset);
77 SkASSERT(offset < fUsed);
78 return *(T*)(fData + offset);
82 * Overwrite a T record at offset, which must be a multiple of 4. Only legal if the record
86 void overwriteTAt(size_t offset, const T& value) {
87 SkASSERT(SkAlign4(offset) == offset);
88 SkASSERT(offset < fUsed);
89 *(T*)(fData + offset) = value;
215 * Move the cursor back to offset bytes from the beginning.
216 * offset must be a multiple of 4 no greater than size().
218 void rewindToOffset(size_t offset) {
219 SkASSERT(SkAlign4(offset) == offset);
220 SkASSERT(offset <= bytesWritten());
221 fUsed = offset;