diff options
| author | Jordan <jordan@psifertex.com> | 2016-11-21 23:22:56 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-21 23:22:56 -0500 |
| commit | f69430aedd957f5e8f221488cd6acb9031d3c1c1 (patch) | |
| tree | be97da4cf1eea398379ad09882e55ba82b20e57b /python | |
| parent | 274535d05bed9868f6826e0ad646b414083e286b (diff) | |
| parent | bf3a89c16536bd2e72409d39d748a8a4ec129910 (diff) | |
Merge pull request #556 from lucasduffey/patch-5
documenting Type.int and Type.function
Diffstat (limited to 'python')
| -rw-r--r-- | python/__init__.py | 15 |
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): |
