Esempio n. 1
0
 def __iter__(self):
     binaryninja._init_plugins()
     count = ctypes.c_ulonglong()
     xforms = core.BNGetTransformTypeList(count)
     try:
         for i in range(0, count.value):
             yield Transform(xforms[i])
     finally:
         core.BNFreeTransformTypeList(xforms)
Esempio n. 2
0
 def list(self):
     binaryninja._init_plugins()
     count = ctypes.c_ulonglong()
     xforms = core.BNGetTransformTypeList(count)
     result = []
     for i in range(0, count.value):
         result.append(Transform(xforms[i]))
     core.BNFreeTransformTypeList(xforms)
     return result