Module ida_idd :: Class Appcall_callable__
[frames] | no frames]

Class Appcall_callable__

object --+
         |
        Appcall_callable__

Helper class to issue appcalls using a natural syntax:
  appcall.FunctionNameInTheDatabase(arguments, ....)
or
  appcall["[email protected]"](arguments, ...)
or
  f8 = appcall["[email protected]"]
  f8(arg1, arg2, ...)
or
  o = appcall.obj()
  i = byref(5)
  appcall.funcname(arg1, i, "hello", o)

Instance Methods
 
__call__(self, *args)
Make object callable.
 
__init__(self, ea, tinfo_or_typestr=None, fields=None)
Initializes an appcall with a given function ea
 
retrieve(self, src=None, flags=0)
Unpacks a typed object from the database if an ea is given or from a string if a string was passed
 
store(self, obj, dest_ea=None, base_ea=0, flags=0)
Packs an object into a given ea if provided or into a string if no address was passed.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
  ea
  fields
  options
  size
  tif
  timeout
  type

Inherited from object: __class__

Method Details

__call__(self, *args)
(Call operator)

 

Make object callable. We redirect execution to idaapi.appcall()

__init__(self, ea, tinfo_or_typestr=None, fields=None)
(Constructor)

 

Initializes an appcall with a given function ea

Overrides: object.__init__

retrieve(self, src=None, flags=0)

 

Unpacks a typed object from the database if an ea is given or from a string if a string was passed

Parameters:
  • src - the address of the object or a string
Returns:
Returns a tuple of boolean and object or error number (Bool, Error | Object).

store(self, obj, dest_ea=None, base_ea=0, flags=0)

 

Packs an object into a given ea if provided or into a string if no address was passed.

Parameters:
  • obj - The object to pack
  • dest_ea - If packing to idb this will be the store location
  • base_ea - If packing to a buffer, this will be the base that will be used to relocate the pointers
Returns:
  • If packing to a string then a Tuple(Boolean, packed_string or error code)
  • If packing to the database then a return code is returned (0 is success)

Property Details

ea

Get Method:
__get_ea(self)
Set Method:
__set_ea(self, val)

fields

Get Method:
__get_fields(self)

options

Get Method:
__get_options(self)
Set Method:
__set_options(self, v)

size

Get Method:
__get_size(self)

tif

Get Method:
__get_tif(self)

timeout

Get Method:
__get_timeout(self)
Set Method:
__set_timeout(self, v)

type

Get Method:
__get_type(self)