示例#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)
示例#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)
示例#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
示例#4
0
def flags(enum):
    '''Return the flags for the enumeration `enum`.'''
    eid = by(enum)
    return idaapi.get_enum_flag(eid)
示例#5
0
文件: enum.py 项目: boogie1337/Sark
 def flag(self):
     """Enum flags (bitness, and display type)"""
     return idaapi.get_enum_flag(self.eid)
示例#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
示例#7
0
def flags(enum):
    '''Return the flags for the enumeration `enum`.'''
    eid = by(enum)
    return idaapi.get_enum_flag(eid)
示例#8
0
def flags(enum, mask):
    return idaapi.get_enum_flag(enum) & mask
示例#9
0
def flags(enum):
    return idaapi.get_enum_flag(enum)