diff options
| author | Josh Ferrell <josh@vector35.com> | 2021-03-01 14:03:17 -0500 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2021-03-01 14:03:17 -0500 |
| commit | 7acfe6f01fc669bf08cd301631601a24486bee74 (patch) | |
| tree | e6a4407659175c76e414446fb9515584e7e25ef0 /type.cpp | |
| parent | 41c617baa83557c053616694306053e5aa3d8ad4 (diff) | |
Add methods for creating wide char types
Diffstat (limited to 'type.cpp')
| -rw-r--r-- | type.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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())); |
