MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / get_function

Method get_function

tools/webassembly.py:591–594  ·  view source on GitHub ↗
(self, idx)

Source from the content-addressed store, hash-verified

589 return len(self.imports_by_kind.get(ExternType.GLOBAL, []))
590
591 def get_function(self, idx):
592 self._calc_indexes()
593 assert idx >= self.num_imported_funcs()
594 return self.get_functions()[idx - self.num_imported_funcs()]
595
596 def iter_functions_by_index(self):
597 self._calc_indexes()

Callers 3

get_main_reads_paramsFunction · 0.80

Calls 3

_calc_indexesMethod · 0.95
num_imported_funcsMethod · 0.95
get_functionsMethod · 0.95

Tested by

no test coverage detected