summaryrefslogtreecommitdiff
path: root/python/types.py
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2021-03-01 14:03:17 -0500
committerJosh Ferrell <josh@vector35.com>2021-03-01 14:03:17 -0500
commit7acfe6f01fc669bf08cd301631601a24486bee74 (patch)
treee6a4407659175c76e414446fb9515584e7e25ef0 /python/types.py
parent41c617baa83557c053616694306053e5aa3d8ad4 (diff)
Add methods for creating wide char types
Diffstat (limited to 'python/types.py')
-rw-r--r--python/types.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/python/types.py b/python/types.py
index e6ab5c2b..76f8c7f0 100644
--- a/python/types.py
+++ b/python/types.py
@@ -811,7 +811,7 @@ class Type(object):
@classmethod
def float(self, width, altname=""):
"""
- ``float`` class method for creating an floating point Types.
+ ``float`` class method for creating floating point Types.
:param int width: width of the floating point number in bytes
:param str altname: alternate name for type
@@ -819,6 +819,16 @@ class Type(object):
return Type(core.BNCreateFloatTypeBuilder(width, altname))
@classmethod
+ def wide_char(self, width, altname=""):
+ """
+ ``wide_char`` class method for creating wide char Types.
+
+ :param int width: width of the wide character in bytes
+ :param str altname: alternate name for type
+ """
+ return Type(core.BNCreateWideCharTypeBuilder(width, altname))
+
+ @classmethod
def structure_type(self, structure_type):
return Type(core.BNCreateStructureTypeBuilder(structure_type.handle))