summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/__init__.py20
1 files changed, 18 insertions, 2 deletions
diff --git a/python/__init__.py b/python/__init__.py
index c5b7e5be..9afd22c2 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -2479,7 +2479,7 @@ class BinaryView(object):
def get_basic_blocks_starting_at(self, addr):
"""
- ``get_basic_blocks_at`` get a list of :py:Class:`BasicBlock` objects which start at the provided virtual address.
+ ``get_basic_blocks_starting_at`` get a list of :py:Class:`BasicBlock` objects which start at the provided virtual address.
:param int addr: virtual address of BasicBlock desired
:return: a list of :py:Class:`BasicBlock` objects
@@ -4343,6 +4343,13 @@ class Type(object):
@classmethod
def int(self, width, sign = True, altname = ""):
+ """
+ ``int`` class method for creating an int Type.
+
+ :param int width: width of the integer in bytes
+ :param bool sign: optional variable representing signedness
+ :param str altname: optional name of integer type
+ """
return Type(core.BNCreateIntegerType(width, sign,
ctypes.create_string_buffer(altname)))
@@ -4378,6 +4385,15 @@ class Type(object):
@classmethod
def function(self, ret, params, calling_convention = None, variable_arguments = False):
+ """
+ ``function`` class method for creating an function Type.
+
+ :param Type ret: width of the integer in bytes
+ :param list(Type) params: list of parameter Types
+ :param CallingConvention calling_convention: optional argument for function calling convention
+ :param bool variable_arguments: optional argument for functions that have a variable number of arguments
+
+ """
param_buf = (core.BNNameAndType * len(params))()
for i in xrange(0, len(params)):
if isinstance(params[i], Type):
@@ -6990,7 +7006,7 @@ class Architecture(object):
def get_instruction_low_level_il(self, data, addr, il):
"""
- ``get_instruction_low_level_il`` appends LowLevelILExpr objects for the instruction at the given virtual
+ ``get_instruction_low_level_il`` appends LowLevelILExpr objects to ``il`` for the instruction at the given virtual
address ``addr`` with data ``data``.
:param str data: max_instruction_length bytes from the binary at virtual address ``addr``