summaryrefslogtreecommitdiff
path: root/type.cpp
diff options
context:
space:
mode:
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()));