summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2018-10-17 19:44:42 -0400
committerPeter LaFosse <peter@vector35.com>2018-10-19 10:05:09 -0400
commit1985d1427e111580c7e26b596daa96bb6db0d799 (patch)
treee7ce1d86ca36cd839543cb9fbbdd88498e4cf7ac /python
parent4bb4a2016d90176938bc8737fd9f29e2d6ea2737 (diff)
Add char convenience method
Diffstat (limited to 'python')
-rw-r--r--python/types.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/types.py b/python/types.py
index 4de55700..05e531e1 100644
--- a/python/types.py
+++ b/python/types.py
@@ -518,6 +518,10 @@ class Type(object):
return Type(core.BNCreateBoolType())
@classmethod
+ def char(self):
+ return Type.int(1, True)
+
+ @classmethod
def int(self, width, sign = None, altname=""):
"""
``int`` class method for creating an int Type.