Home | History | Annotate | Download | only in core

Lines Matching refs:data

17     Light weight class for reading data from a memory block.
20 to attempt to read a value from an empty RBuffer (data == null).
25 /** Initialize RBuffer with a data pointer, but no specified length.
28 SkRBuffer(const void* data) {
29 fData = (const char*)data;
30 fPos = (const char*)data;
33 /** Initialize RBuffer with a data point and length.
35 SkRBuffer(const void* data, size_t size) {
36 SkASSERT(data != 0 || size == 0);
37 fData = (const char*)data;
38 fPos = (const char*)data;
39 fStop = (const char*)data + size;
45 of the data pointer.
48 /** Return the total size of the data pointer. Only defined if the length was
52 /** Return true if the buffer has read to the end of the data pointer.
58 /** Read the specified number of bytes from the data pointer. If buffer is not
68 const void* skip(size_t size); // return start of skipped data
98 error is set if the read operation is attempting to read past the end of the data.
102 SkRBufferWithSizeCheck(const void* data, size_t size) : SkRBuffer(data, size), fError(false) {}
104 /** Read the specified number of bytes from the data pointer. If buffer is not
105 null and the number of bytes to read does not overflow this object's data,
110 /** Returns whether or not a read operation attempted to read past the end of the data.
119 Light weight class for writing data to a memory block.
122 is legal, in which case no data is ever written, but the relative pos()
128 SkWBuffer(void* data) { reset(data); }
129 SkWBuffer(void* data, size_t size) { reset(data, size); }
131 void reset(void* data) {
132 fData = (char*)data;
133 fPos = (char*)data;
137 void reset(void* data, size_t size) {
138 SkASSERT(data != 0 || size == 0);
139 fData = (char*)data;
140 fPos = (char*)data;
141 fStop = (char*)data + size;
145 void* skip(size_t size); // return start of skipped data