Searched refs:Nint (Results 1 – 5 of 5) sorted by relevance
/external/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 …]
|
/external/libcppbor/include/cppbor/ |
D | cppbor.h | 59 class Nint; variable 123 virtual Nint* asNint() { return nullptr; } in asNint() 124 const Nint* asNint() const { return const_cast<Item*>(this)->asNint(); } in asNint() 334 class Nint : public Int { 338 explicit Nint(int64_t v); 340 bool operator==(const Nint& other) const& { return mValue == other.mValue; } 344 Nint* asNint() override { return this; } in asNint() 357 std::unique_ptr<Item> clone() const override { return std::make_unique<Nint>(mValue); } in clone() 799 Nint* asNint() override { return mTaggedItem->asNint(); } in asNint() 993 p = new Nint(v);
|
/external/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
|
/external/libcppbor/src/ |
D | cppbor.cpp | 363 Nint::Nint(int64_t v) : mValue(v) { in Nint() function in cppbor::Nint
|
D | cppbor_parse.cpp | 74 std::unique_ptr<Item> item = std::make_unique<Nint>(-1 - static_cast<int64_t>(value)); in handleNint()
|