Searched refs:Nint (Results 1 – 5 of 5) sorted by relevance
/system/libcppbor/tests/ |
D | cppbor_test.cpp | 86 EXPECT_EQ("\x20"s, Nint(-1).toString()); in TEST() 87 EXPECT_EQ("\x28"s, Nint(-9).toString()); in TEST() 88 EXPECT_EQ("\x29"s, Nint(-10).toString()); in TEST() 89 EXPECT_EQ("\x36"s, Nint(-23).toString()); in TEST() 90 EXPECT_EQ("\x37"s, Nint(-24).toString()); in TEST() 91 EXPECT_EQ("\x38\x18"s, Nint(-25).toString()); in TEST() 92 EXPECT_EQ("\x38\x62"s, Nint(-99).toString()); in TEST() 93 EXPECT_EQ("\x38\x63"s, Nint(-100).toString()); in TEST() 94 EXPECT_EQ("\x39\x03\xe6"s, Nint(-999).toString()); in TEST() 95 EXPECT_EQ("\x39\x03\xe7"s, Nint(-1000).toString()); in TEST() [all …]
|
/system/libcppbor/include/cppbor/ |
D | cppbor.h | 75 class Nint; variable 139 virtual Nint* asNint() { return nullptr; } in asNint() 140 const Nint* asNint() const { return const_cast<Item*>(this)->asNint(); } in asNint() 355 class Nint : public Int { 359 explicit Nint(int64_t v); 361 bool operator==(const Nint& other) const& { return mValue == other.mValue; } 365 Nint* asNint() override { return this; } in asNint() 378 std::unique_ptr<Item> clone() const override { return std::make_unique<Nint>(mValue); } in clone() 829 Nint* asNint() override { return mTaggedItem->asNint(); } in asNint() 1020 p = new Nint(v);
|
/system/libcppbor/ |
D | README.md | 25 * `Nint` corresponds to major type 1. It can only hold values from -1 30 * `Int` is an abstract base of `Uint` and `Nint` that facilitates 50 * Signed and unsigned integers convert to `Uint` or `Nint`, as 94 an integer literal or variable, a `Uint` or `Nint` is added, depending
|
/system/libcppbor/src/ |
D | cppbor.cpp | 363 Nint::Nint(int64_t v) : mValue(v) { in Nint() function in cppbor::Nint
|
D | cppbor_parse.cpp | 81 std::unique_ptr<Item> item = std::make_unique<Nint>(-1 - static_cast<int64_t>(value)); in handleNint()
|