Searched refs:ViewBstr (Results 1 – 4 of 4) sorted by relevance
/system/libcppbor/tests/ |
D | cppbor_test.cpp | 156 EXPECT_EQ("\x40", ViewBstr("").toString()); in TEST() 157 EXPECT_EQ("\x41\x61", ViewBstr("a").toString()); in TEST() 158 EXPECT_EQ("\x41\x41", ViewBstr("A").toString()); in TEST() 159 EXPECT_EQ("\x44\x49\x45\x54\x46", ViewBstr("IETF").toString()); in TEST() 160 EXPECT_EQ("\x42\x22\x5c", ViewBstr("\"\\").toString()); in TEST() 161 EXPECT_EQ("\x42\xc3\xbc", ViewBstr("\xc3\xbc").toString()); in TEST() 162 EXPECT_EQ("\x43\xe6\xb0\xb4", ViewBstr("\xe6\xb0\xb4").toString()); in TEST() 163 EXPECT_EQ("\x44\xf0\x90\x85\x91", ViewBstr("\xf0\x90\x85\x91").toString()); in TEST() 164 EXPECT_EQ("\x44\x01\x02\x03\x04", ViewBstr("\x01\x02\x03\x04").toString()); in TEST() 165 EXPECT_EQ("\x44\x40\x40\x40\x40", ViewBstr("@@@@").toString()); in TEST() [all …]
|
/system/libcppbor/include/cppbor/ |
D | cppbor.h | 85 class ViewBstr; variable 157 virtual ViewBstr* asViewBstr() { return nullptr; } in asViewBstr() 158 const ViewBstr* asViewBstr() const { return const_cast<Item*>(this)->asViewBstr(); } in asViewBstr() 445 class ViewBstr : public Item { 450 explicit ViewBstr() {} in ViewBstr() function 453 explicit ViewBstr(std::basic_string_view<uint8_t> v) : mView(std::move(v)) {} in ViewBstr() function 456 explicit ViewBstr(std::string_view v) in ViewBstr() function 463 ViewBstr(I1 begin, I2 end) : mView(begin, end) {} in ViewBstr() function 466 ViewBstr(const uint8_t* begin, const uint8_t* end) in ViewBstr() function 469 bool operator==(const ViewBstr& other) const& { return mView == other.mView; } [all …]
|
/system/libcppbor/src/ |
D | cppbor.cpp | 133 const ViewBstr* viewBstr = item->asViewBstr(); in prettyPrintInternal() 393 uint8_t* ViewBstr::encode(uint8_t* pos, const uint8_t* end) const { in encode() 399 void ViewBstr::encodeValue(EncodeCallback encodeCallback) const { in encodeValue()
|
D | cppbor_parse.cpp | 298 … return handleString<ViewBstr>(addlData, begin, pos, end, "byte string", parseClient); in parseRecursively()
|