Lines Matching refs:ptr
33 uint8_t* ptr;
41 ASSERT_NULL(wb->ptr);
48 if (wb->ptr != nullptr) {
50 ASSERT_EQ(wb->ptr[0], event);
51 ASSERT_EQ(wb->ptr[1], expected_len);
52 ASSERT_EQ(memcmp(wb->ptr + 2, expected, expected_len), 0);
53 wb->ptr = (uint8_t*)((uintptr_t)(wb->ptr) + expected_len + 2);
54 ASSERT_LE((uintptr_t)wb->ptr, (uintptr_t) wb->buf + wb->size);
55 if ((uintptr_t) wb->ptr == (uintptr_t) wb->buf + wb->size) {
56 wb->ptr = nullptr;
66 if (wb->ptr != nullptr) {
76 wb->ptr = wb->buf;