Searched refs:Uint (Results 1 – 6 of 6) sorted by relevance
/hardware/interfaces/identity/support/tests/ |
D | cppbor_test.cpp | 63 Uint val(testCase.first); in TEST() 71 EXPECT_EQ("\x00"s, Uint(0u).toString()); in TEST() 72 EXPECT_EQ("\x01"s, Uint(1u).toString()); in TEST() 73 EXPECT_EQ("\x0a"s, Uint(10u).toString()); in TEST() 74 EXPECT_EQ("\x17"s, Uint(23u).toString()); in TEST() 75 EXPECT_EQ("\x18\x18"s, Uint(24u).toString()); in TEST() 76 EXPECT_EQ("\x18\x19"s, Uint(25u).toString()); in TEST() 77 EXPECT_EQ("\x18\x64"s, Uint(100u).toString()); in TEST() 78 EXPECT_EQ("\x19\x03\xe8"s, Uint(1000u).toString()); in TEST() 79 EXPECT_EQ("\x1a\x00\x0f\x42\x40"s, Uint(1000000u).toString()); in TEST() [all …]
|
D | IdentityCredentialSupportTest.cpp | 73 EXPECT_EQ("42", support::cborPrettyPrint(cppbor::Uint(42).encode())); in TEST() 76 support::cborPrettyPrint(cppbor::Uint(std::numeric_limits<int64_t>::max()).encode())); in TEST() 143 cppbor::Tstr("foo"), cppbor::Uint(42), in TEST()
|
/hardware/interfaces/identity/support/include/cppbor/ |
D | cppbor.h | 56 class Uint; variable 115 virtual const Uint* asUint() const { return nullptr; } in asUint() 214 class Uint : public Int { 218 explicit Uint(uint64_t v) : mValue(v) {} in Uint() function 220 bool operator==(const Uint& other) const& { return mValue == other.mValue; } 223 const Uint* asUint() const override { return this; } in asUint() 238 virtual std::unique_ptr<Item> clone() const override { return std::make_unique<Uint>(mValue); } in clone() 730 p = new Uint(static_cast<uint64_t>(v));
|
D | README.md | 23 * `Uint` corresponds to major type 0, and can hold unsigned integers 30 * `Int` is an abstract base of `Uint` and `Nint` that facilitates 50 * Signed and unsigned integers convert to `Uint` or `Nint`, as 70 cppbor::Uint val(0); 94 an integer literal or variable, a `Uint` or `Nint` is added, depending
|
/hardware/interfaces/identity/aidl/vts/ |
D | VtsIdentityTestUtils.h | 77 valueCbor = cppbor::Uint(value).encode(); in TestEntryData()
|
/hardware/interfaces/identity/support/src/ |
D | cppbor_parse.cpp | 59 std::unique_ptr<Item> item = std::make_unique<Uint>(value); in handleUint()
|