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

Method ComponentSizeShift

Bcore/src/main/cpp/dex/primitive.h:78–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 }
77
78 static constexpr size_t ComponentSizeShift(Type type) {
79 switch (type) {
80 case kPrimVoid:
81 case kPrimBoolean:
82 case kPrimByte: return 0;
83 case kPrimChar:
84 case kPrimShort: return 1;
85 case kPrimInt:
86 case kPrimFloat: return 2;
87 case kPrimLong:
88 case kPrimDouble: return 3;
89 case kPrimNot: return ComponentSizeShiftWidth(kObjectReferenceSize);
90 }
91 LOG(FATAL) << "Invalid type " << static_cast<int>(type);
92 UNREACHABLE();
93 }
94
95 static constexpr size_t ComponentSize(Type type) {
96 switch (type) {

Callers

nothing calls this directly

Calls 1

ComponentSizeShiftWidthFunction · 0.85

Tested by

no test coverage detected