(self, section_id)
fetch the file offset of the given section.

        Args:
          section_id (int): the section id.

        Returns:
          int: the offset of the section.

        Raises:
          KeyError: if the section is not found.
fetch the file offset of the given section.
fetch the file offset of the given section .
def _get_section_offset(self, section_id):
        '''
        fetch the file offset of the given section.

        Args:
          section_id (int): the section id.

        Returns:
          int: the offset of the section.

        Raises:
          KeyError: if the section is not found.
        '''
        p = 0
        for i, section in enumerate(self.sections):
            if i == 0:
                p += idawasm.common.size_of(section.data)
                continue

            if section.data.id != section_id:
                p += idawasm.common.size_of(section.data)
                continue

            return p

        raise KeyError(section_id)
def _get_section_offset ( self , section_id ) : p = 0 for i , section in enumerate ( self . sections ) : if i == 0 : p += idawasm . common . size_of ( section . data ) continue if section . data . id != section_id : p += idawasm . common . size_of ( section . data ) continue return p raise KeyError ( section_id )