(self)
return globals_
parse the global entries.

        Returns:
          Dict[int, Dict[str, any]]: from global index to dict with keys `offset` and `type`.
parse the global entries.
parse the global entries .
def _parse_globals(self):
        '''
        parse the global entries.

        Returns:
          Dict[int, Dict[str, any]]: from global index to dict with keys `offset` and `type`.
        '''
        globals_ = {}
        global_section = self._get_section(wasm.wasmtypes.SEC_GLOBAL)
        pglobal_section = self._get_section_offset(wasm.wasmtypes.SEC_GLOBAL)

        ppayload = pglobal_section + idawasm.common.offset_of(global_section.data, 'payload')
        pglobals = ppayload + idawasm.common.offset_of(global_section.data.payload, 'globals')
        pcur = pglobals
        for i, body in enumerate(global_section.data.payload.globals):
            pinit = pcur + idawasm.common.offset_of(body, 'init')
            ctype = idawasm.const.WASM_TYPE_NAMES[body.type.content_type]
            globals_[i] = {
                'index': i,
                'offset': pinit,
                'type': ctype,
            }
            pcur += idawasm.common.size_of(body)
        return globals_
def _parse_globals ( self ) : globals_ = { } global_section = self . _get_section ( wasm . wasmtypes . SEC_GLOBAL ) pglobal_section = self . _get_section_offset ( wasm . wasmtypes . SEC_GLOBAL ) ppayload = pglobal_section + idawasm . common . offset_of ( global_section . data , 'payload' ) pglobals = ppayload + idawasm . common . offset_of ( global_section . data . payload , 'globals' ) pcur = pglobals for i , body in enumerate ( global_section . data . payload . globals ) : pinit = pcur + idawasm . common . offset_of ( body , 'init' ) ctype = idawasm . const . WASM_TYPE_NAMES [ body . type . content_type ] globals_ [ i ] = { 'index' : i , 'offset' : pinit , 'type' : ctype , } pcur += idawasm . common . size_of ( body ) return globals_