Searched refs:asNint (Results 1 – 3 of 3) sorted by relevance
/system/libcppbor/include/cppbor/ |
D | cppbor.h | 139 virtual Nint* asNint() { return nullptr; } in asNint() function 140 const Nint* asNint() const { return const_cast<Item*>(this)->asNint(); } in asNint() function 364 using Item::asNint; 365 Nint* asNint() override { return this; } in asNint() function 828 using Item::asNint; 829 Nint* asNint() override { return mTaggedItem->asNint(); } in asNint() function
|
/system/libcppbor/tests/ |
D | cppbor_test.cpp | 721 EXPECT_EQ(nullptr, item->asNint()); in TEST() 742 EXPECT_NE(nullptr, item->asNint()); in TEST() 754 EXPECT_EQ(-10, item->asNint()->value()); in TEST() 763 EXPECT_EQ(nullptr, item->asNint()); in TEST() 784 EXPECT_EQ(nullptr, item->asNint()); in TEST() 804 EXPECT_EQ(nullptr, item->asNint()); in TEST() 831 EXPECT_EQ(nullptr, item->asNint()); in TEST() 851 EXPECT_EQ(nullptr, item->asNint()); in TEST() 871 EXPECT_EQ(nullptr, item->asNint()); in TEST() 901 EXPECT_EQ(nullptr, item->asNint()); in TEST() [all …]
|
/system/libcppbor/src/ |
D | cppbor.cpp | 120 snprintf(buf, sizeof(buf), "%" PRId64, item->asNint()->value()); in prettyPrintInternal() 327 return *asNint() == *(other.asNint()); in operator ==()
|