Lines Matching refs:data
23 static void CheckBits(uint8_t* data, in CheckBits() argument
31 uint8_t actual = data[i / kBitsPerByte] >> (i % kBitsPerByte); in CheckBits()
44 BitMemoryReader reader(buffer.data(), start_bit_offset); in TEST()
55 uint8_t data[sizeof(uint32_t) * 2]; in TEST() local
60 std::fill_n(data, sizeof(data), initial_value * 0xFF); in TEST()
61 BitMemoryRegion bmr1(MemoryRegion(&data, sizeof(data)), bit_offset, 1); in TEST()
64 CheckBits(data, sizeof(data), initial_value, bit_offset, 1, value); in TEST()
66 std::fill_n(data, sizeof(data), initial_value * 0xFF); in TEST()
67 BitMemoryRegion bmr2(MemoryRegion(&data, sizeof(data))); in TEST()
70 CheckBits(data, sizeof(data), initial_value, bit_offset, 1, value); in TEST()
77 uint8_t data[sizeof(uint32_t) * 4]; in TEST() local
84 std::fill_n(data, sizeof(data), initial_value * 0xFF); in TEST()
85 BitMemoryRegion bmr1(MemoryRegion(&data, sizeof(data)), bit_offset, bit_length); in TEST()
88 CheckBits(data, sizeof(data), initial_value, bit_offset, bit_length, value); in TEST()
90 std::fill_n(data, sizeof(data), initial_value * 0xFF); in TEST()
91 BitMemoryRegion bmr2(MemoryRegion(&data, sizeof(data))); in TEST()
94 CheckBits(data, sizeof(data), initial_value, bit_offset, bit_length, value); in TEST()