Lines Matching defs:read
18 The RBuffer is given the buffer to read from, with either a specified size
20 to attempt to read a value from an empty RBuffer (data == null).
44 /** Return the number of bytes that have been read from the beginning
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
61 virtual bool read(void* buffer, size_t size) {
71 bool readPtr(void** ptr) { return read(ptr, sizeof(void*)); }
72 bool readScalar(SkScalar* x) { return read(x, 4); }
73 bool readU32(uint32_t* x) { return read(x, 4); }
74 bool readS32(int32_t* x) { return read(x, 4); }
75 bool readU16(uint16_t* x) { return read(x, 2); }
76 bool readS16(int16_t* x) { return read(x, 2); }
77 bool readU8(uint8_t* x) { return read(x, 1); }
97 Same as SkRBuffer, except that a size check is performed before the read operation and an
98 error is set if the read operation is attempting to read past the end of the data.
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,
108 virtual bool read(void* buffer, size_t size) SK_OVERRIDE;
110 /** Returns whether or not a read operation attempted to read past the end of the data.