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

Method GetNodeId

test-app/runtime/src/main/cpp/MetadataReader.cpp:162–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162uint16_t MetadataReader::GetNodeId(MetadataTreeNode *treeNode) {
163 auto itFound = find(m_v.begin(), m_v.end(), treeNode);
164 assert(itFound != m_v.end());
165 uint16_t nodeId = itFound - m_v.begin();
166
167 return nodeId;
168}
169
170MetadataTreeNode *MetadataReader::GetRoot() const {
171 return m_root;

Callers 1

WriteMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected