Lines Matching refs:data
20 Light weight class for reading data from a memory block.
23 to attempt to read a value from an empty RBuffer (data == null).
29 /** Initialize RBuffer with a data point and length.
31 SkRBuffer(const void* data, size_t size) {
32 SkASSERT(data != nullptr || size == 0);
33 fData = (const char*)data;
34 fPos = (const char*)data;
35 fStop = (const char*)data + size;
39 of the data pointer.
42 /** Return the total size of the data pointer. Only defined if the length was
46 /** Return true if the buffer has read to the end of the data pointer.
56 /** Read the specified number of bytes from the data pointer. If buffer is not
81 Light weight class for writing data to a memory block.
84 is legal, in which case no data is ever written, but the relative pos()
90 SkWBuffer(void* data) { reset(data); }
91 SkWBuffer(void* data, size_t size) { reset(data, size); }
93 void reset(void* data) {
94 fData = (char*)data;
95 fPos = (char*)data;
99 void reset(void* data, size_t size) {
100 SkASSERT(data != nullptr || size == 0);
101 fData = (char*)data;
102 fPos = (char*)data;
103 fStop = (char*)data + size;
107 void* skip(size_t size); // return start of skipped data