Type class represents type information in Binary Ninja, including primitive types, structures, functions, pointers, and arrays. The type system is essential for understanding data layout and function signatures.
Class Declaration
Defined inbinaryninjaapi.h:10520
Type Classes
Get Type Class
VoidTypeClass- void typeBoolTypeClass- boolean typeIntegerTypeClass- integer typesFloatTypeClass- floating-point typesStructureTypeClass- struct/class typesEnumerationTypeClass- enum typesPointerTypeClass- pointer typesArrayTypeClass- array typesFunctionTypeClass- function typesVarArgsTypeClass- varargs (…)ValueTypeClass- value typeNamedTypeReferenceClass- named type referenceWideCharTypeClass- wide character types
Creating Types
Void Type
Integer Types
Float Types
Pointer Types
Array Types
Function Types
Type Properties
Get Width
Get Alignment
Check Signedness
Check Const/Volatile
Function Types
Get Calling Convention
Get Parameters
Check Variable Arguments
Check Return Capability
noreturn).
Pointer and Array Types
Get Child Type
Get Element Count (Arrays)
Structure Types
Get Structure
Named Types
Get Type by Name
Define Type
Type String Representation
Get Type String
Working with Structures
StructureBuilder
Complete Example
Here’s a complete example working with types:See Also
- Function Class - Function type signatures
- BinaryView Class - Type management in binaries
- Structure and Enumeration Documentation