summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorlucasduffey <lucasduffey@users.noreply.github.com>2016-11-21 18:44:52 -0800
committerGitHub <noreply@github.com>2016-11-21 18:44:52 -0800
commitac3ccc385f5b81568387e769fc1445ac03308d42 (patch)
tree42694c8a38c5b75b074ebc5c546f5001f567ca49 /python
parentc71392d19349c84696b525ea229fd9be76192088 (diff)
documenting Type.int and Type.function
Diffstat (limited to 'python')
-rw-r--r--python/__init__.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/python/__init__.py b/python/__init__.py
index e908835a..c8985d55 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -4136,6 +4136,12 @@ class Type(object):
@classmethod
def int(self, width, sign = True):
+ """
+ ``int`` class method for creating an int Type.
+
+ :param int width: width of the integer in bytes
+ :param bool sign: optional variable representing signedness
+ """
return Type(core.BNCreateIntegerType(width, sign))
@classmethod
@@ -4166,6 +4172,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 ret: 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):