Lines Matching defs:position
18 static void test_get_data_at_position(skiatest::Reporter* r, SkStreamBuffer* buffer, size_t position,
20 sk_sp<SkData> data = buffer->getDataAtPosition(position, length);
23 REPORTER_ASSERT(r, !memcmp(data->data(), gText + position, length));
56 for (size_t position = 0; position + step <= length; position += step) {
58 REPORTER_ASSERT(r, buffer.markPosition() == position);
61 REPORTER_ASSERT(r, !memcmp(buffer.get(), gText + position, step));
69 for (size_t position = 0; position + step <= length; position += step) {
70 test_get_data_at_position(r, &buffer, position, step);
130 // Flush the buffer, which moves the position.