Lines Matching refs:buffer
182 SkReadBuffer buffer(dataWritten, bytesWritten - 4);
184 SerializationUtils<T>::Read(buffer, &obj);
185 REPORTER_ASSERT(reporter, !buffer.isValid());
195 // Note: This following test should always succeed, regardless of whether the buffer is valid,
196 // since if it is invalid, it will simply skip to the end, as if it had read the whole buffer.
219 SkReadBuffer buffer(dataWritten, bytesWritten - 4);
221 SerializationUtils<T>::Read(buffer, &obj);
222 REPORTER_ASSERT(reporter, !buffer.isValid());
238 REPORTER_ASSERT(reporter, !buffer.isValid());
257 SkReadBuffer buffer(dataWritten, bytesWritten);
259 bool success = SerializationUtils<T>::Read(buffer, dataRead, kArraySize / 2);
850 // allocRun() allocates only the glyph buffer.