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

Class MethodInfo

test-app/runtime/src/main/cpp/MetadataMethodInfo.h:11–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10namespace tns {
11 class MethodInfo {
12 public:
13
14 MethodInfo(uint8_t *pValue)
15 : isStatic(false), m_pData(pValue), m_pStartData(pValue), m_signatureLength(0),
16 sizeMeasured(false), nameOffset(0), resolvedData(0),
17 declaringNodeId(0){
18 }
19
20 MethodInfo(const MethodInfo& other) = default;
21
22 MethodInfo& operator=(const MethodInfo& other) {
23 if (this != &other) {
24 isStatic = other.isStatic;
25 m_pData = other.m_pData;
26 m_pStartData = other.m_pStartData;
27 m_signatureLength = other.m_signatureLength;
28 sizeMeasured = other.sizeMeasured;
29 nameOffset = other.nameOffset;
30 resolvedData = other.resolvedData;
31 declaringNodeId = other.declaringNodeId;
32 nodeIds = other.nodeIds;
33 }
34 return *this;
35 }
36
37 std::string GetName();
38
39 uint8_t CheckIsResolved();
40
41 uint16_t GetSignatureLength();
42
43 std::string GetSignature();
44
45 std::string GetDeclaringType(); //used only for static methods
46
47 int GetSizeOfReadMethodInfo();
48
49 bool isStatic;
50
51 private:
52 uint8_t *m_pData; //where we currently read
53 uint8_t *m_pStartData; // pointer to the beginning
54 uint16_t m_signatureLength;
55 bool sizeMeasured;
56
57 uint32_t nameOffset;
58 uint8_t resolvedData;
59 uint16_t declaringNodeId;
60 std::vector<uint16_t> nodeIds;
61
62
63 };
64}
65
66#endif /* METHODINFOSMARTPOINTER_H_ */

Callers 3

ReadStaticMethodEntryMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected