summaryrefslogtreecommitdiff
path: root/python/__init__.py
diff options
context:
space:
mode:
authorJordan <jordan@psifertex.com>2016-11-21 23:22:56 -0500
committerGitHub <noreply@github.com>2016-11-21 23:22:56 -0500
commitf69430aedd957f5e8f221488cd6acb9031d3c1c1 (patch)
treebe97da4cf1eea398379ad09882e55ba82b20e57b /python/__init__.py
parent274535d05bed9868f6826e0ad646b414083e286b (diff)
parentbf3a89c16536bd2e72409d39d748a8a4ec129910 (diff)
Merge pull request #556 from lucasduffey/patch-5
documenting Type.int and Type.function
Diffstat (limited to 'python/__init__.py')
-rw-r--r--python/__init__.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/python/__init__.py b/python/__init__.py
index b8bf85f1..087c31af 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(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):