diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/types.py | 12 |
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)) |
