Lines Matching refs:reader
55 BufferReader reader(buffer.data()); in TEST() local
56 ASSERT_EQ(reader.current(), buffer.data()); in TEST()
57 ASSERT_EQ(reader.read<uint8_t>(), 0xABu); in TEST()
58 ASSERT_EQ(reader.current(), buffer.data() + 1u); in TEST()
59 ASSERT_EQ(reader.read<uint16_t>(), 0xCDEFu); in TEST()
60 ASSERT_EQ(reader.current(), buffer.data() + 4u); in TEST()
61 ASSERT_EQ(reader.read<uint8_t>(), 0x01u); in TEST()
62 ASSERT_EQ(reader.current(), buffer.data() + 5u); in TEST()
63 auto [uint32Array, size] = reader.readArray<uint32_t>(); in TEST()
67 ASSERT_EQ(reader.current(), buffer.data() + 20u); in TEST()
68 const uint16_t* uint16Array = reader.map<uint16_t>(4); in TEST()
71 ASSERT_EQ(reader.current(), buffer.data() + 24u); in TEST()
85 BufferReader reader(buffer.data()); in TEST() local
86 ASSERT_EQ(reader.current(), buffer.data()); in TEST()
87 reader.skip<uint8_t>(); in TEST()
88 ASSERT_EQ(reader.current(), buffer.data() + 1u); in TEST()
89 reader.read<uint16_t>(); in TEST()
90 ASSERT_EQ(reader.current(), buffer.data() + 4u); in TEST()
91 reader.skip<uint8_t>(); in TEST()
92 ASSERT_EQ(reader.current(), buffer.data() + 5u); in TEST()
93 reader.skipArray<uint32_t>(); in TEST()
94 ASSERT_EQ(reader.current(), buffer.data() + 20u); in TEST()
96 reader.map<uint16_t>(4); in TEST()
97 ASSERT_EQ(reader.current(), buffer.data() + 24u); in TEST()