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

Class Appcall__

object --+
         |
        Appcall__

Instance Methods
 
__getattr__(self, name_or_ea)
Allows you to call functions as if they were member functions (by returning a callable object)
 
__getitem__(self, idx)
Use self[func_name] syntax if the function name contains invalid characters for an attribute name See __getattr___
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature

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

Static Methods
 
UTF16(s)
 
array(type_name)
Defines an array type.
 
buffer(str=None, size=0, fill='\x00')
Creates a string buffer.
 
byref(val)
Method to create references to immutable objects Currently we support references to int/strings Objects need not be passed by reference (this will be done automatically)
 
cleanup_appcall(tid=0)
Equivalent to IDC's CleanupAppcall()
 
cstr(val)
 
get_appcall_options()
Return the global Appcall options
 
int64(v)
Whenever a 64bit number is needed use this method to construct an object
 
obj(**kwds)
Returns an empty object or objects with attributes as passed via its keywords arguments
 
proto(name_or_ea, proto_or_tinfo, flags=None)
Allows you to instantiate an appcall (callable object) with the desired prototype
 
set_appcall_options(opt)
Method to change the Appcall options globally (not per Appcall)
 
typedobj(typedecl_or_tinfo, ea=None)
Returns an appcall object for a type (can be given as tinfo_t object or as a string declaration) One can then use retrieve() member method
 
unicode(s)
 
valueof(name, default=0)
Returns the numeric value of a given name string.
Class Variables
  APPCALL_DEBEV = 2
  APPCALL_MANUAL = 1
  APPCALL_TIMEOUT = 4
  __name__ = 'Appcall__'
Properties
  Consts

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

array(type_name)
Static Method

 

Defines an array type. Later you need to pack() / unpack()

buffer(str=None, size=0, fill='\x00')
Static Method

 

Creates a string buffer. The returned value (r) will be a byref object. Use r.value to get the contents and r.size to get the buffer's size

proto(name_or_ea, proto_or_tinfo, flags=None)
Static Method

 

Allows you to instantiate an appcall (callable object) with the desired prototype

Parameters:
  • name_or_ea - The name of the function (will be resolved with LocByName())
  • proto_or_tinfo - function prototype as a string or type of the function as tinfo_t object
Returns:
  • On failure it raises an exception if the prototype could not be parsed or the address is not resolvable
  • Returns a callbable Appcall instance with the given prototypes and flags

typedobj(typedecl_or_tinfo, ea=None)
Static Method

 

Returns an appcall object for a type (can be given as tinfo_t object or as a string declaration) One can then use retrieve() member method

Parameters:
  • ea - Optional parameter that later can be used to retrieve the type
Returns:
Appcall object or raises ValueError exception

valueof(name, default=0)
Static Method

 

Returns the numeric value of a given name string. If the name could not be resolved then the default value will be returned


Property Details

Consts

Get Method:
__get_consts(self)