(section, p)
Specialized handler for the ELEMENTS section to mark the offset initializer as code.
Specialized handler for the ELEMENTS section to mark the offset initializer as code.
Specialized handler for the ELEMENTS section to mark the offset initializer as code .
def load_elements_section(section, p):
    '''
    Specialized handler for the ELEMENTS section to mark the offset initializer as code.
    '''
    ppayload = p + idawasm.common.offset_of(section.data, 'payload')
    pentries = ppayload + idawasm.common.offset_of(section.data.payload, 'entries')
    pcur = pentries
    for i, body in enumerate(section.data.payload.entries):
        idc.MakeCode(pcur + idawasm.common.offset_of(body, 'offset'))
        pcur += idawasm.common.size_of(body)
def load_elements_section ( section , p ) : ppayload = p + idawasm . common . offset_of ( section . data , 'payload' ) pentries = ppayload + idawasm . common . offset_of ( section . data . payload , 'entries' ) pcur = pentries for i , body in enumerate ( section . data . payload . entries ) : idc . MakeCode ( pcur + idawasm . common . offset_of ( body , 'offset' ) ) pcur += idawasm . common . size_of ( body )