From 7acfe6f01fc669bf08cd301631601a24486bee74 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Mon, 1 Mar 2021 14:03:17 -0500 Subject: Add methods for creating wide char types --- python/types.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'python') diff --git a/python/types.py b/python/types.py index e6ab5c2b..76f8c7f0 100644 --- a/python/types.py +++ b/python/types.py @@ -811,13 +811,23 @@ 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 """ 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)) -- cgit v1.3.1