Lines Matching refs:read_ptr
707 const void* read_ptr = nullptr;
711 MakeUserPointer(&read_ptr), MakeUserPointer(&num_bytes), false));
712 EXPECT_TRUE(read_ptr);
1387 const void* read_ptr = nullptr;
1390 MakeUserPointer(&read_ptr), MakeUserPointer(&num_bytes), true));
1408 read_ptr = nullptr;
1411 MakeUserPointer(&read_ptr), MakeUserPointer(&num_bytes), true));
1415 read_ptr = nullptr;
1418 MakeUserPointer(&read_ptr), MakeUserPointer(&num_bytes), true));
1420 EXPECT_EQ(0, static_cast<const int32_t*>(read_ptr)[0]);
1454 read_ptr = nullptr;
1457 MakeUserPointer(&read_ptr), MakeUserPointer(&num_bytes), true));
1464 read_ptr = nullptr;
1467 MakeUserPointer(&read_ptr), MakeUserPointer(&num_bytes), true));
1469 EXPECT_EQ(1, static_cast<const int32_t*>(read_ptr)[0]);
1470 EXPECT_EQ(2, static_cast<const int32_t*>(read_ptr)[1]);
1471 EXPECT_EQ(3, static_cast<const int32_t*>(read_ptr)[2]);
1472 EXPECT_EQ(4, static_cast<const int32_t*>(read_ptr)[3]);
1473 EXPECT_EQ(100, static_cast<const int32_t*>(read_ptr)[4]);
1474 EXPECT_EQ(101, static_cast<const int32_t*>(read_ptr)[5]);
1475 EXPECT_EQ(102, static_cast<const int32_t*>(read_ptr)[6]);
1476 EXPECT_EQ(103, static_cast<const int32_t*>(read_ptr)[7]);
1477 EXPECT_EQ(104, static_cast<const int32_t*>(read_ptr)[8]);
1482 read_ptr = nullptr;
1485 MakeUserPointer(&read_ptr), MakeUserPointer(&num_bytes), true));
1880 const void* read_ptr = nullptr;
1884 MakeUserPointer(&read_ptr), MakeUserPointer(&num_bytes), false));
1897 read_ptr = nullptr;
1901 MakeUserPointer(&read_ptr), MakeUserPointer(&num_bytes), false));
1903 EXPECT_EQ(123, static_cast<const int32_t*>(read_ptr)[0]);
1946 const void* read_ptr = nullptr;
1951 MakeUserPointer(&read_ptr), MakeUserPointer(&num_bytes), false));
1953 EXPECT_EQ('a', static_cast<const char*>(read_ptr)[0]);
1954 EXPECT_EQ('b', static_cast<const char*>(read_ptr)[1]);
1971 EXPECT_EQ('a', static_cast<const char*>(read_ptr)[0]);
1972 EXPECT_EQ('b', static_cast<const char*>(read_ptr)[1]);
1984 read_ptr = nullptr;
1989 MakeUserPointer(&read_ptr), MakeUserPointer(&num_bytes), false));
1991 EXPECT_EQ('x', static_cast<const char*>(read_ptr)[0]);
1992 EXPECT_EQ('y', static_cast<const char*>(read_ptr)[1]);