MCPcopy Create free account
hub / github.com/NativeScript/android / getParamCount

Method getParamCount

test-app/runtime/src/main/cpp/MetadataEntry.cpp:93–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93int MetadataEntry::getParamCount() {
94 if (paramCount != -1) return paramCount;
95
96 auto reader = MetadataNode::getMetadataReader();
97
98 if (type == NodeType::Method) {
99 auto sigLength = mi.GetSignatureLength();
100 if (sigLength > 0) {
101 paramCount = sigLength - 1;
102 } else {
103 paramCount = 0;
104 }
105 }
106
107 return paramCount;
108}
109
110bool MetadataEntry::getIsFinal() {
111 if (isFinalSet) return isFinal;

Callers 1

MethodCallbackMethod · 0.80

Calls 1

GetSignatureLengthMethod · 0.80

Tested by

no test coverage detected