Home | History | Annotate | Download | only in core

Lines Matching full: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;
43 of the data pointer.
46 /** Return the total size of the data pointer. Only defined if the length was
50 /** 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
65 const void* skip(size_t size); // return start of skipped data
87 Light weight class for writing data to a memory block.
90 is legal, in which case no data is ever written, but the relative pos()
96 SkWBuffer(void* data) { reset(data); }
97 SkWBuffer(void* data, size_t size) { reset(data, size); }
99 void reset(void* data) {
100 fData = (char*)data;
101 fPos = (char*)data;
105 void reset(void* data, size_t size) {
106 SkASSERT(data != 0 || size == 0);
107 fData = (char*)data;
108 fPos = (char*)data;
109 fStop = (char*)data + size;
113 void* skip(size_t size); // return start of skipped data