Пример #1
0
 def deleting_enum_member(self, id, cid):
     ename = idaapi.get_enum_name(id)
     value = idaapi.get_enum_member_value(cid)
     serial = idaapi.get_enum_member_serial(cid)
     bmask = idaapi.get_enum_member_bmask(cid)
     self._send_event(EnumMemberDeletedEvent(ename, value, serial, bmask))
     return 0
Пример #2
0
 def serial(cls, mid):
     '''Return the serial of the enumeration member `mid`.'''
     if not interface.node.is_identifier(mid):
         raise E.MemberNotFoundError(
             u"{:s}.serial({:#x}) : Unable to locate member by the specified identifier."
             .format('.'.join([__name__, cls.__name__]), mid))
     return idaapi.get_enum_member_serial(mid)
Пример #3
0
 def serial(self):
     """Get the member serial (among members of the same value)."""
     return idaapi.get_enum_member_serial(self.cid)
Пример #4
0
 def serial(cls, mid):
     '''Return the serial of the enumeration member `mid`.'''
     return idaapi.get_enum_member_serial(mid)
Пример #5
0
 def serial(cls, mid):
     '''Return the serial of the enumeration member `mid`.'''
     return idaapi.get_enum_member_serial(mid)
Пример #6
0
 def serial(identifier):
     '''Given a member id, return it's serial'''
     return idaapi.get_enum_member_serial(identifier)
Пример #7
0
 def enum_member_deleted(self, id, cid):
     value = idaapi.get_enum_member_value(cid)
     serial = idaapi.get_enum_member_serial(cid)
     bmask = idaapi.get_enum_member_bmask(cid)
     self._send_event(EnumMemberDeletedEvent(id, value, serial, bmask))
     return 0