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

Method get_tables

tools/webassembly.py:520–533  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

518
519 @memoize
520 def get_tables(self):
521 table_section = self.get_section(SecType.TABLE)
522 if not table_section:
523 return []
524
525 self.seek(table_section.offset)
526 num_tables = self.read_uleb()
527 tables = []
528 for _ in range(num_tables):
529 elem_type = self.read_type()
530 limits = self.read_limits()
531 tables.append(Table(elem_type, limits))
532
533 return tables
534
535 @memoize
536 def get_function_types(self):

Callers

nothing calls this directly

Calls 8

get_sectionMethod · 0.95
seekMethod · 0.95
read_ulebMethod · 0.95
read_typeMethod · 0.95
read_limitsMethod · 0.95
TableFunction · 0.85
appendMethod · 0.80
rangeFunction · 0.50

Tested by

no test coverage detected