MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / PrettyDescriptor

Method PrettyDescriptor

Bcore/src/main/cpp/dex/primitive.cc:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47#define COUNT_OF(x) (sizeof(x) / sizeof((x)[0]))
48
49const char* Primitive::PrettyDescriptor(Primitive::Type type) {
50 static_assert(COUNT_OF(kTypeNames) == static_cast<size_t>(Primitive::kPrimLast) + 1,
51 "Missing element");
52 CHECK(Primitive::kPrimNot <= type && type <= Primitive::kPrimVoid) << static_cast<int>(type);
53 return kTypeNames[type];
54}
55
56const char* Primitive::BoxedDescriptor(Primitive::Type type) {
57 static_assert(COUNT_OF(kBoxedDescriptors) == static_cast<size_t>(Primitive::kPrimLast) + 1,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected