(self)
return functions
parse the export entries for functions.
        useful for recovering function names.

        Returns:
          Dict[int, Dict[str, any]]: from function index to dict with keys `index` and `name`.
parse the export entries for functions.
        useful for recovering function names.
parse the export entries for functions . useful for recovering function names .
def _parse_exported_functions(self):
        '''
        parse the export entries for functions.
        useful for recovering function names.

        Returns:
          Dict[int, Dict[str, any]]: from function index to dict with keys `index` and `name`.
        '''
        functions = {}
        export_section = self._get_section(wasm.wasmtypes.SEC_EXPORT)
        for entry in export_section.data.payload.entries:
            if entry.kind != idawasm.const.WASM_EXTERNAL_KIND_FUNCTION:
                continue

            functions[entry.index] = {
                'index': entry.index,
                'name': entry.field_str.tobytes().decode('utf-8'),
                'exported': True,
                # TODO: not sure if an export can be imported.
                'imported': False,
            }

        return functions
def _parse_exported_functions ( self ) : functions = { } export_section = self . _get_section ( wasm . wasmtypes . SEC_EXPORT ) for entry in export_section . data . payload . entries : if entry . kind != idawasm . const . WASM_EXTERNAL_KIND_FUNCTION : continue functions [ entry . index ] = { 'index' : entry . index , 'name' : entry . field_str . tobytes ( ) . decode ( 'utf-8' ) , 'exported' : True , # TODO: not sure if an export can be imported. 'imported' : False , } return functions