Exemplo n.º 1
0
 def __init__(self, cid, val):
     self.cid = cid
     self.name = idaapi.get_enum_member_name(cid)
     self.parent = idaapi.get_enum_member_enum(
         cid
     )  #yes, this could totally be passed in. Avoid premature optimization!!!
     self.flags = idaapi.get_enum_flag(self.parent)
     self.val = value.value_node(val, self.flags)
Exemplo n.º 2
0
 def __init__(self, cid, val):
     self.cid = cid
     self.name = idaapi.get_enum_member_name(cid)
     self.parent = idaapi.get_enum_member_enum(cid) #yes, this could totally be passed in. Avoid premature optimization!!!
     self.flags = idaapi.get_enum_flag(self.parent)
     self.val = value.value_node(val, self.flags)
Exemplo n.º 3
0
def flags(enum, mask):
    '''Return the flags for the enumeration `enum` and masked with `mask`.'''
    eid = by(enum)
    return idaapi.get_enum_flag(eid) & mask
Exemplo n.º 4
0
def flags(enum):
    '''Return the flags for the enumeration `enum`.'''
    eid = by(enum)
    return idaapi.get_enum_flag(eid)
Exemplo n.º 5
0
 def flag(self):
     """Enum flags (bitness, and display type)"""
     return idaapi.get_enum_flag(self.eid)
Exemplo n.º 6
0
def flags(enum, mask):
    '''Return the flags for the enumeration `enum` and masked with `mask`.'''
    eid = by(enum)
    return idaapi.get_enum_flag(eid) & mask
Exemplo n.º 7
0
def flags(enum):
    '''Return the flags for the enumeration `enum`.'''
    eid = by(enum)
    return idaapi.get_enum_flag(eid)
Exemplo n.º 8
0
def flags(enum, mask):
    return idaapi.get_enum_flag(enum) & mask
Exemplo n.º 9
0
def flags(enum):
    return idaapi.get_enum_flag(enum)