Searched refs:sub_sp (Results 1 – 2 of 2) sorted by relevance
/ark/runtime_core/libpandabase/tests/ |
D | span_test.cpp | 92 auto sub_sp = sp.SubSpan<Foo>(4, 2); in TEST() local 93 ASSERT_EQ(sub_sp.size(), 2U); in TEST() 94 ASSERT_EQ(sub_sp[0].a, 1U); in TEST() 95 ASSERT_EQ(sub_sp[0].b, 2); in TEST() 96 ASSERT_EQ(sub_sp[1].a, 0x12345678U); in TEST() 97 ASSERT_EQ(sub_sp[1].b, -2); in TEST() 105 auto sub_sp = sp.SubSpan<uint16_t>(1, 4); in TEST() local 106 ASSERT_EQ(sub_sp.size(), 4U); in TEST() 107 ASSERT_EQ(sub_sp[0], 0x0708); in TEST() 108 ASSERT_EQ(sub_sp[1], 0x0506); in TEST() [all …]
|
/ark/runtime_core/libpandafile/ |
D | file_writer.h | 158 auto sub_sp = sp_.SubSpan(offset_, bytes.size()); in WriteBytes() local 159 if (memcpy_s(sub_sp.data(), sub_sp.size(), bytes.data(), bytes.size()) != 0) { in WriteBytes()
|