Lines Matching full:data
24 Light weight class for reading data from a memory block.
27 to attempt to read a value from an empty RBuffer (data == null).
32 /** Initialize RBuffer with a data pointer, but no specified length.
35 SkRBuffer(const void* data)
37 fData = (const char*)data;
38 fPos = (const char*)data;
41 /** Initialize RBuffer with a data point and length.
43 SkRBuffer(const void* data, size_t size)
45 SkASSERT(data != 0 || size == 0);
46 fData = (const char*)data;
47 fPos = (const char*)data;
48 fStop = (const char*)data + size;
52 of the data pointer.
55 /** Return the total size of the data pointer. Only defined if the length was
59 /** Return true if the buffer has read to the end of the data pointer.
65 /** Read the specified number of bytes from the data pointer. If buffer is not
69 const void* skip(size_t size); // return start of skipped data
91 Light weight class for writing data to a memory block.
94 is legal, in which case no data is ever written, but the relative pos()
100 SkWBuffer(void* data) { reset(data); }
101 SkWBuffer(void* data, size_t size) { reset(data, size); }
103 void reset(void* data)
105 fData = (char*)data;
106 fPos = (char*)data;
109 void reset(void* data, size_t size)
111 SkASSERT(data != 0 || size == 0);
112 fData = (char*)data;
113 fPos = (char*)data;
114 fStop = (char*)data + size;
117 void* data() const { return fData; }
121 void* skip(size_t size); // return start of skipped data