summaryrefslogtreecommitdiff
path: root/type.cpp
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 /type.cpp
parent41c617baa83557c053616694306053e5aa3d8ad4 (diff)
Add methods for creating wide char types
Diffstat (limited to 'type.cpp')
-rw-r--r--type.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/type.cpp b/type.cpp
index ead27768..08597f1a 100644
--- a/type.cpp
+++ b/type.cpp
@@ -708,6 +708,12 @@ Ref<Type> Type::FloatType(size_t width, const string& altName)
}
+Ref<Type> Type::WideCharType(size_t width, const string& altName)
+{
+ return new Type(BNCreateWideCharType(width, altName.c_str()));
+}
+
+
Ref<Type> Type::StructureType(Structure* strct)
{
return new Type(BNCreateStructureType(strct->GetObject()));
@@ -1340,6 +1346,12 @@ TypeBuilder TypeBuilder::FloatType(size_t width, const string& altName)
}
+TypeBuilder TypeBuilder::WideCharType(size_t width, const string& altName)
+{
+ return TypeBuilder(BNCreateWideCharTypeBuilder(width, altName.c_str()));
+}
+
+
TypeBuilder TypeBuilder::StructureType(Structure* strct)
{
return TypeBuilder(BNCreateStructureTypeBuilder(strct->GetObject()));