From 1985d1427e111580c7e26b596daa96bb6db0d799 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Wed, 17 Oct 2018 19:44:42 -0400 Subject: Add char convenience method --- python/types.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'python/types.py') diff --git a/python/types.py b/python/types.py index 4de55700..05e531e1 100644 --- a/python/types.py +++ b/python/types.py @@ -517,6 +517,10 @@ class Type(object): def bool(self): return Type(core.BNCreateBoolType()) + @classmethod + def char(self): + return Type.int(1, True) + @classmethod def int(self, width, sign = None, altname=""): """ -- cgit v1.3.1