types module¶
Class |
Description |
---|---|
All TypeBuilder objects should not be instantiated directly but created via |
|
|
|
All TypeBuilder objects should not be instantiated directly but created via |
|
|
|
All TypeBuilder objects should not be instantiated directly but created via |
|
|
|
All TypeBuilder objects should not be instantiated directly but created via |
|
|
|
All TypeBuilder objects should not be instantiated directly but created via |
|
|
|
All TypeBuilder objects should not be instantiated directly but created via |
|
|
|
All TypeBuilder objects should not be instantiated directly but created via |
|
|
|
All TypeBuilder objects should not be instantiated directly but created via |
|
|
|
All TypeBuilder objects should not be instantiated directly but created via |
|
|
|
All TypeBuilder objects should not be instantiated directly but created via |
|
|
|
Symbols are defined as one of the following types: |
|
|
|
All TypeBuilder objects should not be instantiated directly but created via |
|
All TypeBuilder objects should not be instantiated directly but created via |
|
|
|
All TypeBuilder objects should not be instantiated directly but created via |
|
|
- class ArrayBuilder[source]
Bases:
TypeBuilder
- classmethod create(type: TypeBuilder | Type, element_count: int, platform: Platform | None = None, confidence: int = 255) ArrayBuilder [source]
- Parameters:
type (TypeBuilder | Type) –
element_count (int) –
platform (Platform | None) –
confidence (int) –
- Return type:
- property children: List[TypeBuilder]
- property count: int
- property element_type: TypeBuilder
- class ArrayType[source]
Bases:
Type
- classmethod create(element_type: Type, count: int, platform: Platform | None = None, confidence: int = 255) ArrayType [source]
- property count
Type count (read-only)
- property element_type: Type
- class BaseStructure[source]
Bases:
object
BaseStructure(type: Union[ForwardRef(‘NamedTypeReferenceType’), ForwardRef(‘StructureType’)], offset: int, width: int = 0)
- __init__(type: NamedTypeReferenceType | StructureType, offset: int, width: int = 0)[source]
- Parameters:
type (NamedTypeReferenceType | StructureType) –
offset (int) –
width (int) –
- offset: int
- type: NamedTypeReferenceType
- width: int
- class BoolBuilder[source]
Bases:
TypeBuilder
- classmethod create(platform: Platform | None = None, confidence: int = 255) BoolBuilder [source]
- Parameters:
- Return type:
- class BoolWithConfidence[source]
Bases:
object
BoolWithConfidence(value: bool, confidence: int = 255)
- classmethod from_core_struct(core_struct: BNBoolWithConfidence) BoolWithConfidence [source]
- Parameters:
core_struct (BNBoolWithConfidence) –
- Return type:
- static get_core_struct(value: bool | BoolWithConfidence, confidence: int = 255) BNBoolWithConfidence [source]
- Parameters:
value (bool | BoolWithConfidence) –
confidence (int) –
- Return type:
BNBoolWithConfidence
- confidence: int = 255
- value: bool
- class CharBuilder[source]
Bases:
IntegerBuilder
- class CharType[source]
Bases:
IntegerType
- class CoreSymbol[source]
Bases:
object
- __init__(handle: LP_BNSymbol)[source]
- Parameters:
handle (LP_BNSymbol) –
- imported_function_from_import_address_symbol(addr: int) CoreSymbol | None [source]
- Parameters:
addr (int) –
- Return type:
CoreSymbol | None
- property address: int
Symbol address (read-only)
- property auto: bool
Whether the symbol was auto-defined
- property binding: SymbolBinding
Symbol binding (read-only)
- property full_name: str
Symbol full name (read-only)
- property handle
- property name: str
Symbol name (read-only)
- property namespace: NameSpace
Symbol namespace (read-only)
- property ordinal: int
Symbol ordinal (read-only)
- property raw_bytes: bytes
Bytes of the raw symbol (read-only)
- property raw_name: str
Symbol raw name (read-only)
- property short_name: str
Symbol short name (read-only)
- property type: SymbolType
Symbol type (read-only)
- class EnumerationBuilder[source]
Bases:
TypeBuilder
- __init__(handle: LP_BNTypeBuilder, enum_builder_handle: LP_BNEnumerationBuilder, platform: Platform | None = None, confidence: int = 255)[source]
- append(name: str, value: int | None = None) EnumerationBuilder [source]
- Parameters:
- Return type:
- classmethod create(members: List[Tuple[str, int]] | List[str] | List[EnumerationMember] | None = None, width: int | None = None, arch: Architecture | None = None, sign: bool | BoolWithConfidence = False, platform: Platform | None = None, confidence: int = 255) EnumerationBuilder [source]
- Parameters:
members (List[Tuple[str, int]] | List[str] | List[EnumerationMember] | None) –
width (int | None) –
arch (Architecture | None) –
sign (bool | BoolWithConfidence) –
platform (Platform | None) –
confidence (int) –
- Return type:
- immutable_copy() EnumerationType [source]
- Return type:
- remove(i: int) EnumerationBuilder [source]
- Parameters:
i (int) –
- Return type:
- replace(i: int, name: str, value: int) EnumerationBuilder [source]
- Parameters:
- Return type:
- property members: List[EnumerationMember]
Enumeration member list (read-only)
- class EnumerationMember[source]
Bases:
object
EnumerationMember(name: str, value: Optional[int] = None)
- name: str
- class EnumerationType[source]
Bases:
IntegerType
- classmethod create(members: List[Tuple[str, int]] | List[str] | List[EnumerationMember], width: int | None = None, arch: Architecture | None = None, sign: bool | BoolWithConfidence = False, platform: Platform | None = None, confidence: int = 255) EnumerationType [source]
- Parameters:
members (List[Tuple[str, int]] | List[str] | List[EnumerationMember]) –
width (int | None) –
arch (Architecture | None) –
sign (bool | BoolWithConfidence) –
platform (Platform | None) –
confidence (int) –
- Return type:
- mutable_copy() EnumerationBuilder [source]
- Return type:
- property members
Enumeration member list (read-only)
- class FloatBuilder[source]
Bases:
TypeBuilder
- class FloatType[source]
Bases:
Type
- class FunctionBuilder[source]
Bases:
TypeBuilder
- append(type: TypeBuilder | Type | FunctionParameter, name: str = '')[source]
- Parameters:
type (TypeBuilder | Type | FunctionParameter) –
name (str) –
- classmethod create(return_type: TypeBuilder | Type | None = None, calling_convention: CallingConvention | None = None, params: List[Type] | List[FunctionParameter] | List[Tuple[str, Type]] | None = None, var_args: bool | BoolWithConfidence | None = None, stack_adjust: int | OffsetWithConfidence | None = None, platform: _platform.Platform | None = None, confidence: int = 255, can_return: BoolWithConfidence | None = None, reg_stack_adjust: Dict[architecture.RegisterName, int | OffsetWithConfidence] | None = None, return_regs: RegisterSet | List[architecture.RegisterType] | None = None, name_type: NameType = NameType.NoNameType, pure: BoolWithConfidence | None = None) FunctionBuilder [source]
- Parameters:
return_type (TypeBuilder | Type | None) –
calling_convention (CallingConvention | None) –
params (List[Type] | List[FunctionParameter] | List[Tuple[str, Type]] | None) –
var_args (bool | BoolWithConfidence | None) –
stack_adjust (int | OffsetWithConfidence | None) –
platform (_platform.Platform | None) –
confidence (int) –
can_return (BoolWithConfidence | None) –
reg_stack_adjust (Dict[architecture.RegisterName, int | OffsetWithConfidence] | None) –
return_regs (RegisterSet | List[architecture.RegisterType] | None) –
name_type (NameType) –
pure (BoolWithConfidence | None) –
- Return type:
- property calling_convention: CallingConvention
- property can_return: BoolWithConfidence
- property children: List[TypeBuilder]
- property immutable_return_value: Type
- property parameters: List[FunctionParameter]
Type parameters list (read-only)
- property pure: BoolWithConfidence
- property return_value: TypeBuilder
- property stack_adjust: OffsetWithConfidence
- property stack_adjustment: OffsetWithConfidence
- property variable_arguments: BoolWithConfidence
- class FunctionParameter[source]
Bases:
object
FunctionParameter(type: Union[ForwardRef(‘TypeBuilder’), ForwardRef(‘Type’)], name: str = ‘’, location: Optional[ForwardRef(‘variable.VariableNameAndType’)] = None)
- __init__(type: TypeBuilder | Type, name: str = '', location: VariableNameAndType | None = None) None
- Parameters:
type (TypeBuilder | Type) –
name (str) –
location (VariableNameAndType | None) –
- Return type:
None
- immutable_copy() FunctionParameter [source]
- Return type:
- mutable_copy() FunctionParameter [source]
- Return type:
- location: VariableNameAndType | None = None
- name: str = ''
- type: TypeBuilder | Type
- class FunctionType[source]
Bases:
Type
- classmethod create(ret: Type | None = None, params: List[Type] | List[FunctionParameter] | List[Tuple[str, Type]] | None = None, calling_convention: CallingConvention | None = None, variable_arguments: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255), stack_adjust: OffsetWithConfidence = OffsetWithConfidence(value=0, confidence=255), platform: _platform.Platform | None = None, confidence: int = 255, can_return: BoolWithConfidence | bool = True, reg_stack_adjust: Dict[architecture.RegisterName, int | OffsetWithConfidence] | None = None, return_regs: RegisterSet | List[architecture.RegisterType] | None = None, name_type: NameType = NameType.NoNameType, pure: BoolWithConfidence | bool = False) FunctionType [source]
- Parameters:
ret (Type | None) –
params (List[Type] | List[FunctionParameter] | List[Tuple[str, Type]] | None) –
calling_convention (CallingConvention | None) –
variable_arguments (bool | BoolWithConfidence) –
stack_adjust (OffsetWithConfidence) –
platform (_platform.Platform | None) –
confidence (int) –
can_return (BoolWithConfidence | bool) –
reg_stack_adjust (Dict[architecture.RegisterName, int | OffsetWithConfidence] | None) –
return_regs (RegisterSet | List[architecture.RegisterType] | None) –
name_type (NameType) –
pure (BoolWithConfidence | bool) –
- Return type:
- property calling_convention: CallingConvention | None
Calling convention (read-only)
- property can_return: BoolWithConfidence
Whether type can return
- property has_variable_arguments: BoolWithConfidence
Whether type has variable arguments (read-only)
- property parameters: List[FunctionParameter]
Type parameters list (read-only)
- property parameters_with_all_locations: List[FunctionParameter]
Type parameters list with default locations filled in with values (read-only)
- property pure: BoolWithConfidence
Whether type is pure
- property return_value: Type
Return value (read-only)
- property stack_adjustment: OffsetWithConfidence
Stack adjustment for function (read-only)
- class InheritedStructureMember[source]
Bases:
object
InheritedStructureMember(base: ‘NamedTypeReferenceType’, base_offset: int, member: binaryninja.types.StructureMember, member_index: int)
- __init__(base: NamedTypeReferenceType, base_offset: int, member: StructureMember, member_index: int) None
- Parameters:
base (NamedTypeReferenceType) –
base_offset (int) –
member (StructureMember) –
member_index (int) –
- Return type:
None
- base: NamedTypeReferenceType
- base_offset: int
- member: StructureMember
- member_index: int
- class IntegerBuilder[source]
Bases:
TypeBuilder
- classmethod create(width: int, sign: bool | BoolWithConfidence = True, alternate_name: str = '', platform: Platform | None = None, confidence: int = 255) IntegerBuilder [source]
- Parameters:
- Return type:
- class IntegerType[source]
Bases:
Type
- classmethod create(width: int, sign: bool | BoolWithConfidence = True, alternate_name: str = '', platform: Platform | None = None, confidence: int = 255) IntegerType [source]
- Parameters:
- Return type:
- property signed: BoolWithConfidence
Whether type is signed (read-only)
- class MutableTypeBuilder[source]
Bases:
Generic
[TB
]MutableTypeBuilder(type: ~TB, container: Union[ForwardRef(‘binaryview.BinaryView’), ForwardRef(‘typelibrary.TypeLibrary’)], name: binaryninja.types.QualifiedName, platform: Optional[ForwardRef(‘_platform.Platform’)], confidence: int, user: bool = True)
- __init__(type: TB, container: BinaryView | TypeLibrary, name: QualifiedName, platform: Platform | None, confidence: int, user: bool = True) None
- Parameters:
type (TB) –
container (BinaryView | TypeLibrary) –
name (QualifiedName) –
platform (Platform | None) –
confidence (int) –
user (bool) –
- Return type:
None
- confidence: int
- container: BinaryView | TypeLibrary
- name: QualifiedName
- type: TB
- user: bool = True
- class NameSpace[source]
Bases:
QualifiedName
- class NamedTypeReferenceBuilder[source]
Bases:
TypeBuilder
- __init__(handle: LP_BNTypeBuilder, ntr_builder_handle: LP_BNNamedTypeReferenceBuilder, platform: Platform | None = None, confidence: int = 255)[source]
- classmethod create(type_class: NamedTypeReferenceClass = NamedTypeReferenceClass.UnknownNamedTypeClass, type_id: str | None = None, name: Iterable[str | bytes] | str | QualifiedName = '', width: int = 0, align: int = 1, platform: Platform | None = None, confidence: int = 255, const: bool | BoolWithConfidence = False, volatile: bool | BoolWithConfidence = False) NamedTypeReferenceBuilder [source]
- Parameters:
type_class (NamedTypeReferenceClass) –
type_id (str | None) –
name (Iterable[str | bytes] | str | QualifiedName) –
width (int) –
align (int) –
platform (Platform | None) –
confidence (int) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
- Return type:
- immutable_copy() NamedTypeReferenceType [source]
- Return type:
- static named_type(named_type: NamedTypeReferenceBuilder, width: int = 0, align: int = 1, const: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255), volatile: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255)) NamedTypeReferenceBuilder [source]
- Parameters:
named_type (NamedTypeReferenceBuilder) –
width (int) –
align (int) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
- Return type:
- static named_type_from_registered_type(view: BinaryView, name: Iterable[str | bytes] | str | QualifiedName) NamedTypeReferenceBuilder [source]
- Parameters:
view (BinaryView) –
name (Iterable[str | bytes] | str | QualifiedName) –
- Return type:
- static named_type_from_type(name: Iterable[str | bytes] | str | QualifiedName, type_class: NamedTypeReferenceClass | None = None) NamedTypeReferenceBuilder [source]
- Parameters:
name (Iterable[str | bytes] | str | QualifiedName) –
type_class (NamedTypeReferenceClass | None) –
- Return type:
- static named_type_from_type_and_id(type_id: str, name: Iterable[str | bytes] | str | QualifiedName, type: Type | None = None) NamedTypeReferenceBuilder [source]
- Parameters:
- Return type:
- property id: str
- property name: QualifiedName
- property named_type_class: NamedTypeReferenceClass
- property type_id: str
- class NamedTypeReferenceType[source]
Bases:
Type
- classmethod create(named_type_class: NamedTypeReferenceClass, guid: str | None, name: Iterable[str | bytes] | str | QualifiedName, alignment: int = 0, width: int = 0, platform: Platform | None = None, confidence: int = 255, const: bool | BoolWithConfidence = False, volatile: bool | BoolWithConfidence = False) NamedTypeReferenceType [source]
- Parameters:
named_type_class (NamedTypeReferenceClass) –
guid (str | None) –
name (Iterable[str | bytes] | str | QualifiedName) –
alignment (int) –
width (int) –
platform (Platform | None) –
confidence (int) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
- Return type:
- classmethod create_from_handle(ntr_handle, alignment: int = 0, width: int = 0, platform: Platform | None = None, confidence: int = 255, const: bool | BoolWithConfidence = False, volatile: bool | BoolWithConfidence = False)[source]
Create a NamedTypeReferenceType from a BNNamedTypeReference handle
- Parameters:
alignment (int) –
width (int) –
platform (Platform | None) –
confidence (int) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
- classmethod create_from_registered_type(view: BinaryView, name: Iterable[str | bytes] | str | QualifiedName, platform: Platform | None = None, confidence: int = 255) NamedTypeReferenceType [source]
- Parameters:
view (BinaryView) –
name (Iterable[str | bytes] | str | QualifiedName) –
platform (Platform | None) –
confidence (int) –
- Return type:
- classmethod create_from_type(name: Iterable[str | bytes] | str | QualifiedName, type: Type | None, guid: str | None = None, platform: Platform | None = None, confidence: int = 255, const: bool | BoolWithConfidence = False, volatile: bool | BoolWithConfidence = False) NamedTypeReferenceType [source]
- Parameters:
name (Iterable[str | bytes] | str | QualifiedName) –
type (Type | None) –
guid (str | None) –
platform (Platform | None) –
confidence (int) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
- Return type:
- static generate_auto_demangled_type_ref(type_class: NamedTypeReferenceClass, name: Iterable[str | bytes] | str | QualifiedName)[source]
- Parameters:
type_class (NamedTypeReferenceClass) –
name (Iterable[str | bytes] | str | QualifiedName) –
- static generate_auto_type_ref(type_class: NamedTypeReferenceClass, source: str, name: Iterable[str | bytes] | str | QualifiedName)[source]
- Parameters:
type_class (NamedTypeReferenceClass) –
source (str) –
name (Iterable[str | bytes] | str | QualifiedName) –
- mutable_copy()[source]
- target(bv: BinaryView) Type | None [source]
Returns the type pointed to by the current type
- Parameters:
bv (BinaryView) – The BinaryView in which this type is defined.
- Returns:
The type this NamedTypeReference is referencing
- Return type:
Optional[Type]
- property name: QualifiedName
- property named_type_class: NamedTypeReferenceClass
- property type_id: str
- class OffsetWithConfidence[source]
Bases:
object
OffsetWithConfidence(value: int, confidence: int = 255)
- classmethod from_core_struct(core_struct: BNOffsetWithConfidence) OffsetWithConfidence [source]
- Parameters:
core_struct (BNOffsetWithConfidence) –
- Return type:
- static get_core_struct(value: int | OffsetWithConfidence, confidence: int = 255) BNOffsetWithConfidence [source]
- Parameters:
value (int | OffsetWithConfidence) –
confidence (int) –
- Return type:
BNOffsetWithConfidence
- confidence: int = 255
- value: int
- class PointerBuilder[source]
Bases:
TypeBuilder
- add_pointer_suffix(suffix: PointerSuffix)[source]
Append a suffix to the pointer, must be one defined in
PointerSuffix
. :param suffix: New suffix- Parameters:
suffix (PointerSuffix) –
- classmethod create(type: Type, width: int = 4, arch: Architecture | None = None, const: bool | BoolWithConfidence = False, volatile: bool | BoolWithConfidence = False, ref_type: ReferenceType = ReferenceType.PointerReferenceType, platform: Platform | None = None, confidence: int = 255) PointerBuilder [source]
- Parameters:
type (Type) –
width (int) –
arch (Architecture | None) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
ref_type (ReferenceType) –
platform (Platform | None) –
confidence (int) –
- Return type:
- get_pointer_suffix_tokens(base_confidence: int = 255) List[InstructionTextToken] [source]
Get the pointer suffix, as a list of tokens :param base_confidence: (optional) Confidence value to combine with the pointer’s confidence :return: Token list
- Parameters:
base_confidence (int) –
- Return type:
- set_pointer_base(base_type: PointerBaseType, base_offset: int)[source]
Set the pointer base type and offset :param base_type: Base type, e.g. __based(start) is RelativeToBinaryStartPointerBaseType :param base_offset: Base offset, e.g. __based(start, 0x1000) is 0x1000
- Parameters:
base_type (PointerBaseType) –
base_offset (int) –
- property children: List[TypeBuilder]
- property immutable_target: Type
- property offset: int
Currently not used and has no effect (Leaving this in for compatibility)
- property origin: Tuple[QualifiedName, int] | None
- property pointer_base_offset: int
Pointer base offset, e.g. __based(start, 0x1000) is 0x1000
- property pointer_base_type: PointerBaseType
Pointer base type, e.g. __based(start) is RelativeToBinaryStartPointerBaseType
- property pointer_suffix: List[PointerSuffix]
Pointer suffix, e.g. __unaligned is [UnalignedSuffix] (read-only)
- property pointer_suffix_string: str
Pointer suffix, but as a string, e.g. “__unaligned” (read-only)
- property target: TypeBuilder
- class PointerType[source]
Bases:
Type
- classmethod create(arch: Architecture, type: TypeBuilder | Type, const: bool | BoolWithConfidence = False, volatile: bool | BoolWithConfidence = False, ref_type: ReferenceType = ReferenceType.PointerReferenceType, platform: Platform | None = None, confidence: int = 255) PointerType [source]
- Parameters:
arch (Architecture) –
type (TypeBuilder | Type) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
ref_type (ReferenceType) –
platform (Platform | None) –
confidence (int) –
- Return type:
- classmethod create_with_width(width: int, type: TypeBuilder | Type, const: bool | BoolWithConfidence = False, volatile: bool | BoolWithConfidence = False, ref_type: ReferenceType | None = None, platform: Platform | None = None, confidence: int = 255) PointerType [source]
- Parameters:
width (int) –
type (TypeBuilder | Type) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
ref_type (ReferenceType | None) –
platform (Platform | None) –
confidence (int) –
- Return type:
- static from_bools(const: bool | BoolWithConfidence, volatile: bool | BoolWithConfidence) Tuple[BoolWithConfidence, BoolWithConfidence] [source]
- Parameters:
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
- Return type:
- get_pointer_suffix_tokens(base_confidence: int = 255) List[InstructionTextToken] [source]
Get the pointer suffix, as a list of tokens :param base_confidence: (optional) Confidence value to combine with the pointer’s confidence :return: Token list
- Parameters:
base_confidence (int) –
- Return type:
- origin(bv: BinaryView | None) Tuple[QualifiedName, int] | None [source]
- Parameters:
bv (BinaryView | None) –
- Return type:
Tuple[QualifiedName, int] | None
- property pointer_base_offset: int
Pointer base offset, e.g. __based(start, 0x1000) is 0x1000 (read-only)
- property pointer_base_type: PointerBaseType
Pointer base type, e.g. __based(start) is RelativeToBinaryStartPointerBaseType (read-only)
- property pointer_suffix: List[PointerSuffix]
Pointer suffix, e.g. __unaligned is [UnalignedSuffix] (read-only)
- property pointer_suffix_string: str
Pointer suffix, but as a string, e.g. “__unaligned” (read-only)
- property ref_type: ReferenceType
- property target: Type
Target (read-only)
- class QualifiedName[source]
Bases:
object
- __init__(name: Iterable[str | bytes] | str | QualifiedName | None = None)[source]
- Parameters:
name (Iterable[str | bytes] | str | QualifiedName | None) –
- static escape(name: Iterable[str | bytes] | str | QualifiedName, escaping: TokenEscapingType) str [source]
- Parameters:
name (Iterable[str | bytes] | str | QualifiedName) –
escaping (TokenEscapingType) –
- Return type:
- static unescape(name: Iterable[str | bytes] | str | QualifiedName, escaping: TokenEscapingType) str [source]
- Parameters:
name (Iterable[str | bytes] | str | QualifiedName) –
escaping (TokenEscapingType) –
- Return type:
- class RegisterSet[source]
Bases:
object
RegisterSet(regs: List[ForwardRef(‘architecture.RegisterName’)], confidence: int = 255)
- with_confidence(confidence)[source]
- confidence: int = 255
- regs: List[RegisterName]
- class RegisterStackAdjustmentWithConfidence[source]
Bases:
object
RegisterStackAdjustmentWithConfidence(value: int, confidence: int = 255)
- confidence: int = 255
- value: int
- class StructureBuilder[source]
Bases:
TypeBuilder
- __init__(handle: LP_BNTypeBuilder, builder_handle: LP_BNStructureBuilder, platform: Platform | None = None, confidence: int = 255)[source]
- add_member_at_offset(name: str, type: TypeBuilder | Type, offset: int, overwrite_existing: bool = True, access: MemberAccess = MemberAccess.NoAccess, scope: MemberScope = MemberScope.NoScope) StructureBuilder [source]
- Parameters:
name (str) –
type (TypeBuilder | Type) –
offset (int) –
overwrite_existing (bool) –
access (MemberAccess) –
scope (MemberScope) –
- Return type:
- append(type: TypeBuilder | Type, name: str = '', access: MemberAccess = MemberAccess.NoAccess, scope: MemberScope = MemberScope.NoScope) StructureBuilder [source]
- Parameters:
type (TypeBuilder | Type) –
name (str) –
access (MemberAccess) –
scope (MemberScope) –
- Return type:
- classmethod create(members: List[StructureMember] | List[Type] | List[Tuple[Type, str]] | None = None, type: StructureVariant = StructureVariant.StructStructureType, packed: bool = False, width: int | None = None, platform: Platform | None = None, confidence: int = 255) StructureBuilder [source]
- Parameters:
- Return type:
- immutable_copy() StructureType [source]
- Return type:
- insert(offset: int, type: TypeBuilder | Type, name: str = '', overwrite_existing: bool = True, access: MemberAccess = MemberAccess.NoAccess, scope: MemberScope = MemberScope.NoScope)[source]
- Parameters:
offset (int) –
type (TypeBuilder | Type) –
name (str) –
overwrite_existing (bool) –
access (MemberAccess) –
scope (MemberScope) –
- member_at_offset(offset: int) StructureMember | None [source]
- Parameters:
offset (int) –
- Return type:
StructureMember | None
- replace(index: int, type: TypeBuilder | Type, name: str = '', overwrite_existing: bool = True)[source]
- Parameters:
index (int) –
type (TypeBuilder | Type) –
name (str) –
overwrite_existing (bool) –
- property alignment: int
- property base_structures: List[BaseStructure]
Base structure list. Offsets that are not defined by this structure will be filled in by the fields of the base structure(s).
- property children: List[TypeBuilder]
- property members: List[StructureMember]
Structure member list (read-only)
- property packed: bool
- property pointer_offset: int
- property propagate_data_var_refs: bool
- property type: StructureVariant
- property union: bool
- property width: int
- class StructureMember[source]
Bases:
object
StructureMember(type: ‘Type’, name: str, offset: int, access: binaryninja.enums.MemberAccess = <MemberAccess.NoAccess: 0>, scope: binaryninja.enums.MemberScope = <MemberScope.NoScope: 0>)
- __init__(type: Type, name: str, offset: int, access: MemberAccess = MemberAccess.NoAccess, scope: MemberScope = MemberScope.NoScope) None
- Parameters:
type (Type) –
name (str) –
offset (int) –
access (MemberAccess) –
scope (MemberScope) –
- Return type:
None
- access: MemberAccess = 0
- name: str
- offset: int
- scope: MemberScope = 0
- type: Type
- class StructureType[source]
Bases:
Type
- classmethod create(members: List[StructureMember] | List[Type] | List[Tuple[Type, str]] | None = None, packed: bool = False, type: StructureVariant = StructureVariant.StructStructureType, platform: Platform | None = None, confidence: int = 255) StructureType [source]
- Parameters:
- Return type:
- classmethod from_core_struct(structure: BNStructure) StructureType [source]
- Parameters:
structure (BNStructure) –
- Return type:
- member_at_offset(offset: int) StructureMember [source]
- Parameters:
offset (int) –
- Return type:
- member_at_offset_including_inherited(view: BinaryView, offset: int) InheritedStructureMember [source]
Returns the member (including inherited member at the specified offset
- Parameters:
view (BinaryView) –
offset (int) –
- Return type:
- members_including_inherited(view: BinaryView | TypeContainer) List[InheritedStructureMember] [source]
Returns structure member list, including those inherited by base structures
- Parameters:
view (BinaryView | TypeContainer) –
- Return type:
- mutable_copy() StructureBuilder [source]
- Return type:
- resolve_member_or_base_member(view: BinaryView | None, offset: int, size: int, resolve_func: Callable[[NamedTypeReferenceType, StructureType, int, int, int, StructureMember], None], member_index_hint: int | None = None) bool [source]
- Parameters:
view (BinaryView | None) –
offset (int) –
size (int) –
resolve_func (Callable[[NamedTypeReferenceType, StructureType, int, int, int, StructureMember], None]) –
member_index_hint (int | None) –
- Return type:
- with_replaced_enumeration(from_enum, to_enum) StructureType [source]
- Return type:
- with_replaced_named_type_reference(from_ref, to_ref) StructureType [source]
- Return type:
- with_replaced_structure(from_struct, to_struct) StructureType [source]
- Return type:
- property alignment
Structure alignment
- property base_structures: List[BaseStructure]
Base structure list (read-only). Offsets that are not defined by this structure will be filled in by the fields of the base structure(s).
- property members
Structure member list (read-only)
- property packed
- property pointer_offset
Structure pointer offset. Pointers to this structure will implicitly have this offset subtracted from the pointer to arrive at the start of the structure. Effectively, the pointer offset becomes the new start of the structure, and fields before it are accessed using negative offsets from the pointer.
- property propagate_data_var_refs: bool
Whether structure field references propagate the references to data variable field values
- property type: StructureVariant
- property width
Structure width
- class Symbol[source]
Bases:
CoreSymbol
Symbols are defined as one of the following types:
SymbolType
Description
FunctionSymbol
Symbol for function that exists in the current binary
ImportAddressSymbol
Symbol defined in the Import Address Table
ImportedFunctionSymbol
Symbol for a function that is not defined in the current binary
DataSymbol
Symbol for data in the current binary
ImportedDataSymbol
Symbol for data that is not defined in the current binary
ExternalSymbol
Symbols for data and code that reside outside the BinaryView
LibraryFunctionSymbol
Symbols for functions identified as belonging to a shared library
SymbolicFunctionSymbol
Symbols for functions without a concrete implementation or which have been abstractly represented
LocalLabelSymbol
Symbol for a local label in the current binary
- __init__(sym_type, addr, short_name, full_name=None, raw_name=None, binding=None, namespace=None, ordinal=0)[source]
- class Type[source]
Bases:
object
class Type
allows you to interact with the Binary Ninja type system. Note that therepr
andstr
handlers respond differently on type objects.Other related functions that may be helpful include:
parse_type_string
parse_types_from_source
parse_types_from_source_file
- static builder(bv: BinaryView, name: QualifiedName | None = None, id: str | None = None, platform: Platform | None = None, confidence: int = 255) MutableTypeBuilder [source]
- Parameters:
bv (BinaryView) –
name (QualifiedName | None) –
id (str | None) –
platform (Platform | None) –
confidence (int) –
- Return type:
- static class_type(members: List[StructureMember] | List[Type] | List[Tuple[Type, str]] | None = None, packed: bool = False) StructureType [source]
- Parameters:
- Return type:
- classmethod create(handle: LP_BNType, platform: Platform | None = None, confidence: int = 255) Type [source]
- static enumeration(arch: Architecture | None = None, members: List[Tuple[str, int]] | List[str] | List[EnumerationMember] | None = None, width: int | None = None, sign: bool | BoolWithConfidence = False) EnumerationType [source]
- Parameters:
arch (Architecture | None) –
members (List[Tuple[str, int]] | List[str] | List[EnumerationMember] | None) –
width (int | None) –
sign (bool | BoolWithConfidence) –
- Return type:
- static enumeration_type(arch, enum: EnumerationBuilder, width: int | None = None, sign: bool = False) EnumerationType [source]
- Parameters:
enum (EnumerationBuilder) –
width (int | None) –
sign (bool) –
- Return type:
- static float(width: int, alternate_name: str = '') FloatType [source]
float
class method for creating floating point Types.
- static from_core_struct(core_type: BNType)[source]
- Parameters:
core_type (BNType) –
- static function(ret: Type | None = None, params: List[Type] | List[FunctionParameter] | List[Tuple[str, Type]] | None = None, calling_convention: CallingConvention | None = None, variable_arguments: bool | BoolWithConfidence = False, stack_adjust: OffsetWithConfidence = OffsetWithConfidence(value=0, confidence=255)) FunctionType [source]
function
class method for creating a function Type.- Parameters:
ret (Type) – return Type of the function
calling_convention (CallingConvention) – optional argument for the function calling convention
variable_arguments (bool) – optional boolean, true if the function has a variable number of arguments
stack_adjust (OffsetWithConfidence) –
- Return type:
- static generate_auto_demangled_type_id(name: Iterable[str | bytes] | str | QualifiedName) str [source]
- static generate_auto_type_id(source: str, name: Iterable[str | bytes] | str | QualifiedName) str [source]
- static generate_named_type_reference(guid: str, name: Iterable[str | bytes] | str | QualifiedName) NamedTypeReferenceType [source]
- Parameters:
- Return type:
- get_builder(bv: BinaryView) MutableTypeBuilder [source]
- Parameters:
bv (BinaryView) –
- Return type:
- get_lines(bv: BinaryView | TypeContainer, name: str, padding_cols: int = 64, collapsed: bool = False, escaping: TokenEscapingType = TokenEscapingType.NoTokenEscapingType) List[TypeDefinitionLine] [source]
Get a list of
TypeDefinitionLine
structures for representing a Type in a structured form. This structure uses the same logic as Types View and will expand structures and enumerations unless collapsed is set.- Parameters:
bv (BinaryView) – BinaryView object owning this Type
name (str) – Displayed name of the Type
padding_cols (int) – Maximum number of bytes represented by each padding line
collapsed (bool) – If the type should be collapsed, and not show fields/members
escaping (TokenEscapingType) – How to escape non-parsable strings in types
- Returns:
Returns a list of
TypeDefinitionLine
structures- Return type:
- get_string(escaping: TokenEscapingType = TokenEscapingType.NoTokenEscapingType) str [source]
Get string representation for this type
- Parameters:
escaping (TokenEscapingType) – How to escape non-parsable strings in types
- Returns:
String for type
- Return type:
- Example:
>>> Type.array(Type.int(4), 10).get_string() 'int32_t[0xa]'
- get_string_after_name(escaping: TokenEscapingType = TokenEscapingType.NoTokenEscapingType) str [source]
Get the string to be printed after this type’s name in a representation
- Parameters:
escaping (TokenEscapingType) – How to escape non-parsable strings in types
- Returns:
String for type representation after the name
- Return type:
- Example:
>>> Type.array(Type.int(4), 10).get_string() 'int32_t[0xa]' >>> Type.array(Type.int(4), 10).get_string_after_name() '[0xa]'
- get_string_before_name(escaping: TokenEscapingType = TokenEscapingType.NoTokenEscapingType) str [source]
Get the string to be printed before this type’s name in a representation of it
- Parameters:
escaping (TokenEscapingType) – How to escape non-parsable strings in types
- Returns:
String for type representation before the name
- Return type:
- Example:
>>> Type.array(Type.int(4), 10).get_string() 'int32_t[0xa]' >>> Type.array(Type.int(4), 10).get_string_before_name() 'int32_t'
- get_tokens(base_confidence=255, escaping: TokenEscapingType = TokenEscapingType.NoTokenEscapingType) List[InstructionTextToken] [source]
Get a list of tokens for the definition of a type
- Parameters:
base_confidence (int) – Confidence of this type
escaping (TokenEscapingType) – How to escape non-parsable strings in types
- Returns:
List of tokens
- Return type:
List[_function.InstructionTextToken]
- Example:
>>> Type.array(Type.int(4), 10).get_string() 'int32_t[0xa]' >>> Type.array(Type.int(4), 10).get_tokens() ['int32_t', ' ', '[', '0xa', ']']
- get_tokens_after_name(base_confidence=255, escaping: TokenEscapingType = TokenEscapingType.NoTokenEscapingType) List[InstructionTextToken] [source]
Get a list of tokens for the definition of a type that are placed after the type name
- Parameters:
base_confidence (int) – Confidence of this type
escaping (TokenEscapingType) – How to escape non-parsable strings in types
- Returns:
List of tokens
- Return type:
List[_function.InstructionTextToken]
- Example:
>>> Type.array(Type.int(4), 10).get_string() 'int32_t[0xa]' >>> Type.array(Type.int(4), 10).get_tokens_after_name() ['[', '0xa', ']']
- get_tokens_before_name(base_confidence=255, escaping: TokenEscapingType = TokenEscapingType.NoTokenEscapingType) List[InstructionTextToken] [source]
Get a list of tokens for the definition of a type that are placed before the type name
- Parameters:
base_confidence (int) – Confidence of this type
escaping (TokenEscapingType) – How to escape non-parsable strings in types
- Returns:
List of tokens
- Return type:
List[_function.InstructionTextToken]
- Example:
>>> Type.array(Type.int(4), 10).get_string() 'int32_t[0xa]' >>> Type.array(Type.int(4), 10).get_tokens_before_name() ['int32_t']
- static int(width: int, sign: bool | BoolWithConfidence = True, alternate_name: str = '') IntegerType [source]
int
class method for creating an int Type.- Parameters:
- Return type:
- mutable_copy() TypeBuilder [source]
- Return type:
- static named_type(named_type: NamedTypeReferenceBuilder) NamedTypeReferenceType [source]
- Parameters:
named_type (NamedTypeReferenceBuilder) –
- Return type:
- static named_type_from_registered_type(view: BinaryView, name: Iterable[str | bytes] | str | QualifiedName) NamedTypeReferenceType [source]
- Parameters:
view (BinaryView) –
name (Iterable[str | bytes] | str | QualifiedName) –
- Return type:
- static named_type_from_type(name: Iterable[str | bytes] | str | QualifiedName, type: Type) NamedTypeReferenceType [source]
- Parameters:
- Return type:
- static named_type_from_type_and_id(type_id: str, name: Iterable[str | bytes] | str | QualifiedName, type: Type | None = None) NamedTypeReferenceType [source]
- Parameters:
- Return type:
- static named_type_reference(type_class: NamedTypeReferenceClass, name: Iterable[str | bytes] | str | QualifiedName, type_id: str | None = None, alignment: int = 1, width: int = 0, const: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255), volatile: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255))[source]
- Parameters:
type_class (NamedTypeReferenceClass) –
name (Iterable[str | bytes] | str | QualifiedName) –
type_id (str | None) –
alignment (int) –
width (int) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
- static pointer(arch: Architecture, type: Type, const: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255), volatile: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255), ref_type: ReferenceType = ReferenceType.PointerReferenceType, width: int | None = None) PointerType [source]
- Parameters:
arch (Architecture) –
type (Type) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
ref_type (ReferenceType) –
width (int | None) –
- Return type:
- static pointer_of_width(width: int, type: Type, const: bool | BoolWithConfidence = False, volatile: bool | BoolWithConfidence = False, ref_type: ReferenceType = ReferenceType.PointerReferenceType) PointerType [source]
- Parameters:
width (int) –
type (Type) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
ref_type (ReferenceType) –
- Return type:
- static structure(members: List[StructureMember] | List[Type] | List[Tuple[Type, str]] | None = None, packed: bool = False, type: StructureVariant = StructureVariant.StructStructureType) StructureType [source]
- Parameters:
members (List[StructureMember] | List[Type] | List[Tuple[Type, str]] | None) –
packed (bool) –
type (StructureVariant) –
- Return type:
- static structure_type(structure: StructureBuilder) StructureType [source]
- Parameters:
structure (StructureBuilder) –
- Return type:
- static union(members: List[StructureMember] | List[Type] | List[Tuple[Type, str]] | None = None, packed: bool = False) StructureType [source]
- Parameters:
- Return type:
- static wide_char(width: int, alternate_name: str = '') WideCharType [source]
wide_char
class method for creating wide char Types.- Parameters:
- Return type:
- with_replaced_enumeration(from_enum: EnumerationType, to_enum: EnumerationType)[source]
- Parameters:
from_enum (EnumerationType) –
to_enum (EnumerationType) –
- with_replaced_named_type_reference(from_ref: NamedTypeReferenceType, to_ref: NamedTypeReferenceType)[source]
- Parameters:
from_ref (NamedTypeReferenceType) –
to_ref (NamedTypeReferenceType) –
- with_replaced_structure(from_struct: StructureType, to_struct: StructureType)[source]
- Parameters:
from_struct (StructureType) –
to_struct (StructureType) –
- property alignment: int
Type alignment (read-only)
- property altname: str
Alternative name for the type object
- property confidence: int
- property const
Whether type is const (read/write)
- property handle
- property name: QualifiedName
- property offset: int
Offset into structure (read-only)
- property registered_name: NamedTypeReferenceType | None
Name of type registered to binary view, if any (read-only)
- property system_call_number: int | None
Returns the system call number for a FunctionType object if one exists otherwise None
- property tokens: List[InstructionTextToken]
Type string as a list of tokens (read-only)
- property type_class: TypeClass
Type class (read-only)
- property volatile
Whether type is volatile (read/write)
- property width: int
Type width (read-only)
- class TypeBuilder[source]
Bases:
object
All TypeBuilder objects should not be instantiated directly but created via
.create
APIs.- static array(type: Type, count: int) ArrayBuilder [source]
- Parameters:
- Return type:
- static bool() BoolBuilder [source]
- Return type:
- classmethod builder(container: BinaryView | TypeLibrary, name: QualifiedName, user: bool = True, platform: Platform | None = None, confidence: int = 255) MutableTypeBuilder[TB] [source]
- Parameters:
container (BinaryView | TypeLibrary) –
name (QualifiedName) –
user (bool) –
platform (Platform | None) –
confidence (int) –
- Return type:
- static char(alternate_name: str = '') CharBuilder [source]
- Parameters:
alternate_name (str) –
- Return type:
- static class_type(members: List[StructureMember] | List[Type] | List[Tuple[Type, str]] | None = None, packed: bool = False) StructureBuilder [source]
- Parameters:
- Return type:
- classmethod create()[source]
- static enumeration(arch: Architecture | None = None, members: List[Tuple[str, int]] | List[str] | List[EnumerationMember] | None = None, width: int | None = None, sign: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255)) EnumerationBuilder [source]
- Parameters:
arch (Architecture | None) –
members (List[Tuple[str, int]] | List[str] | List[EnumerationMember] | None) –
width (int | None) –
sign (bool | BoolWithConfidence) –
- Return type:
- static float(width: int, altname: str = '') FloatBuilder [source]
float
class method for creating floating point Types.- Parameters:
- Return type:
- static function(ret: Type | None = None, params: List[Type] | List[FunctionParameter] | List[Tuple[str, Type]] | None = None, calling_convention: CallingConvention | None = None, variable_arguments: bool | BoolWithConfidence | None = None, stack_adjust: int | OffsetWithConfidence | None = None) FunctionBuilder [source]
function
class method for creating a function Type.- Parameters:
ret (Type) – return Type of the function
calling_convention (CallingConvention) – optional argument for the function calling convention
variable_arguments (bool) – optional boolean, true if the function has a variable number of arguments
stack_adjust (int | OffsetWithConfidence | None) –
- Return type:
- immutable_copy()[source]
- static int(width: int, sign: bool | BoolWithConfidence = BoolWithConfidence(value=True, confidence=255), altname: str = '') IntegerBuilder [source]
int
class method for creating an int Type.- Parameters:
- Return type:
- mutable_copy() TypeBuilder [source]
- Return type:
- static named_type_from_registered_type(view: BinaryView, name: QualifiedName) NamedTypeReferenceBuilder [source]
- Parameters:
view (BinaryView) –
name (QualifiedName) –
- Return type:
- static named_type_from_type(name: Iterable[str | bytes] | str | QualifiedName, type_class: NamedTypeReferenceClass | None = None) NamedTypeReferenceBuilder [source]
- Parameters:
name (Iterable[str | bytes] | str | QualifiedName) –
type_class (NamedTypeReferenceClass | None) –
- Return type:
- static named_type_from_type_and_id(type_id: str, name: Iterable[str | bytes] | str | QualifiedName, type: Type | None = None) NamedTypeReferenceBuilder [source]
- Parameters:
- Return type:
- static named_type_reference(type_class: NamedTypeReferenceClass, name: QualifiedName, type_id: str | None = None, alignment: int = 1, width: int = 0, const: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255), volatile: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255)) NamedTypeReferenceBuilder [source]
- Parameters:
type_class (NamedTypeReferenceClass) –
name (QualifiedName) –
type_id (str | None) –
alignment (int) –
width (int) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
- Return type:
- static pointer(arch: Architecture, type: Type, const: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255), volatile: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255), ref_type: ReferenceType = ReferenceType.PointerReferenceType) PointerBuilder [source]
- Parameters:
arch (Architecture) –
type (Type) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
ref_type (ReferenceType) –
- Return type:
- static pointer_of_width(width: int, type: Type, const: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255), volatile: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255), ref_type: ReferenceType = ReferenceType.PointerReferenceType) PointerBuilder [source]
- Parameters:
width (int) –
type (Type) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
ref_type (ReferenceType) –
- Return type:
- static structure(members: List[StructureMember] | List[Type] | List[Tuple[Type, str]] | None = None, packed: bool = False, type: StructureVariant = StructureVariant.StructStructureType) StructureBuilder [source]
- Parameters:
members (List[StructureMember] | List[Type] | List[Tuple[Type, str]] | None) –
packed (bool) –
type (StructureVariant) –
- Return type:
- static union(members: List[StructureMember] | List[Type] | List[Tuple[Type, str]] | None = None, packed: bool = False) StructureBuilder [source]
- Parameters:
- Return type:
- static void() VoidBuilder [source]
- Return type:
- static wide_char(width: int, altname: str = '') WideCharBuilder [source]
wide_char
class method for creating wide char Types.- Parameters:
- Return type:
- property alignment: int
- property child: Type
- property children: List[TypeBuilder]
- property const: BoolWithConfidence
Whether type is const (read/write)
- property finalized
- property handle: LP_BNType
- property signed: BoolWithConfidence
- property system_call_number: int | None
Gets/Sets the system call number for a FunctionType object if one exists otherwise None
- property type_class: TypeClass
- property volatile: BoolWithConfidence
Whether type is volatile (read/write)
- property width: int
- class TypeDefinitionLine[source]
Bases:
object
TypeDefinitionLine(line_type: binaryninja.enums.TypeDefinitionLineType, tokens: List[ForwardRef(‘_function.InstructionTextToken’)], type: ‘Type’, parent_type: ‘Type’, root_type: ‘Type’, root_type_name: str, base_type: Optional[ForwardRef(‘NamedTypeReferenceType’)], base_offset: int, offset: int, field_index: int)
- __init__(line_type: TypeDefinitionLineType, tokens: List[InstructionTextToken], type: Type, parent_type: Type, root_type: Type, root_type_name: str, base_type: NamedTypeReferenceType | None, base_offset: int, offset: int, field_index: int) None
- Parameters:
line_type (TypeDefinitionLineType) –
tokens (List[InstructionTextToken]) –
type (Type) –
parent_type (Type) –
root_type (Type) –
root_type_name (str) –
base_type (NamedTypeReferenceType | None) –
base_offset (int) –
offset (int) –
field_index (int) –
- Return type:
None
- base_offset: int
- base_type: NamedTypeReferenceType | None
- field_index: int
- line_type: TypeDefinitionLineType
- offset: int
- parent_type: Type
- root_type: Type
- root_type_name: str
- tokens: List[InstructionTextToken]
- type: Type
- class TypeFieldReference[source]
Bases:
object
TypeFieldReference(func: Optional[ForwardRef(‘_function.Function’)], arch: Optional[ForwardRef(‘architecture.Architecture’)], address: int, size: int, incomingType: Optional[binaryninja.types.Type])
- __init__(func: Function | None, arch: Architecture | None, address: int, size: int, incomingType: Type | None) None
- Parameters:
func (Function | None) –
arch (Architecture | None) –
address (int) –
size (int) –
incomingType (Type | None) –
- Return type:
None
- address: int
- arch: Architecture | None
- size: int
- class TypeReferenceSource[source]
Bases:
object
TypeReferenceSource(name: binaryninja.types.QualifiedName, offset: int, ref_type: binaryninja.enums.TypeReferenceType)
- __init__(name: QualifiedName, offset: int, ref_type: TypeReferenceType) None
- Parameters:
name (QualifiedName) –
offset (int) –
ref_type (TypeReferenceType) –
- Return type:
None
- name: QualifiedName
- offset: int
- ref_type: TypeReferenceType
- class VoidBuilder[source]
Bases:
TypeBuilder
- classmethod create(platform: Platform | None = None, confidence: int = 255) VoidBuilder [source]
- Parameters:
- Return type:
- class WideCharBuilder[source]
Bases:
TypeBuilder
- class WideCharType[source]
Bases:
Type
ArrayBuilder¶
- class ArrayBuilder[source]¶
Bases:
TypeBuilder
- classmethod create(type: TypeBuilder | Type, element_count: int, platform: Platform | None = None, confidence: int = 255) ArrayBuilder [source]¶
- Parameters:
type (TypeBuilder | Type) –
element_count (int) –
platform (Platform | None) –
confidence (int) –
- Return type:
- property children: List[TypeBuilder]¶
- property element_type: TypeBuilder¶
ArrayType¶
BaseStructure¶
- class BaseStructure[source]¶
Bases:
object
BaseStructure(type: Union[ForwardRef(‘NamedTypeReferenceType’), ForwardRef(‘StructureType’)], offset: int, width: int = 0)
- __init__(type: NamedTypeReferenceType | StructureType, offset: int, width: int = 0)[source]¶
- Parameters:
type (NamedTypeReferenceType | StructureType) –
offset (int) –
width (int) –
- type: NamedTypeReferenceType¶
BoolBuilder¶
- class BoolBuilder[source]¶
Bases:
TypeBuilder
BoolType¶
BoolWithConfidence¶
- class BoolWithConfidence[source]¶
Bases:
object
BoolWithConfidence(value: bool, confidence: int = 255)
- classmethod from_core_struct(core_struct: BNBoolWithConfidence) BoolWithConfidence [source]¶
- Parameters:
core_struct (BNBoolWithConfidence) –
- Return type:
- static get_core_struct(value: bool | BoolWithConfidence, confidence: int = 255) BNBoolWithConfidence [source]¶
- Parameters:
value (bool | BoolWithConfidence) –
confidence (int) –
- Return type:
BNBoolWithConfidence
CharBuilder¶
- class CharBuilder[source]¶
Bases:
IntegerBuilder
CharType¶
CoreSymbol¶
- class CoreSymbol[source]¶
Bases:
object
- imported_function_from_import_address_symbol(addr: int) CoreSymbol | None [source]¶
- Parameters:
addr (int) –
- Return type:
CoreSymbol | None
- property binding: SymbolBinding¶
Symbol binding (read-only)
- property handle¶
- property type: SymbolType¶
Symbol type (read-only)
EnumerationBuilder¶
- class EnumerationBuilder[source]¶
Bases:
TypeBuilder
- __init__(handle: LP_BNTypeBuilder, enum_builder_handle: LP_BNEnumerationBuilder, platform: Platform | None = None, confidence: int = 255)[source]¶
- classmethod create(members: List[Tuple[str, int]] | List[str] | List[EnumerationMember] | None = None, width: int | None = None, arch: Architecture | None = None, sign: bool | BoolWithConfidence = False, platform: Platform | None = None, confidence: int = 255) EnumerationBuilder [source]¶
- Parameters:
members (List[Tuple[str, int]] | List[str] | List[EnumerationMember] | None) –
width (int | None) –
arch (Architecture | None) –
sign (bool | BoolWithConfidence) –
platform (Platform | None) –
confidence (int) –
- Return type:
- immutable_copy() EnumerationType [source]¶
- Return type:
- remove(i: int) EnumerationBuilder [source]¶
- Parameters:
i (int) –
- Return type:
- property members: List[EnumerationMember]¶
Enumeration member list (read-only)
EnumerationMember¶
EnumerationType¶
- class EnumerationType[source]¶
Bases:
IntegerType
- classmethod create(members: List[Tuple[str, int]] | List[str] | List[EnumerationMember], width: int | None = None, arch: Architecture | None = None, sign: bool | BoolWithConfidence = False, platform: Platform | None = None, confidence: int = 255) EnumerationType [source]¶
- Parameters:
members (List[Tuple[str, int]] | List[str] | List[EnumerationMember]) –
width (int | None) –
arch (Architecture | None) –
sign (bool | BoolWithConfidence) –
platform (Platform | None) –
confidence (int) –
- Return type:
- generate_named_type_reference(guid: str, name: Iterable[str | bytes] | str | QualifiedName)[source]¶
- mutable_copy() EnumerationBuilder [source]¶
- Return type:
- property members¶
Enumeration member list (read-only)
FloatBuilder¶
- class FloatBuilder[source]¶
Bases:
TypeBuilder
FloatType¶
FunctionBuilder¶
- class FunctionBuilder[source]¶
Bases:
TypeBuilder
- append(type: TypeBuilder | Type | FunctionParameter, name: str = '')[source]¶
- Parameters:
type (TypeBuilder | Type | FunctionParameter) –
name (str) –
- classmethod create(return_type: TypeBuilder | Type | None = None, calling_convention: CallingConvention | None = None, params: List[Type] | List[FunctionParameter] | List[Tuple[str, Type]] | None = None, var_args: bool | BoolWithConfidence | None = None, stack_adjust: int | OffsetWithConfidence | None = None, platform: _platform.Platform | None = None, confidence: int = 255, can_return: BoolWithConfidence | None = None, reg_stack_adjust: Dict[architecture.RegisterName, int | OffsetWithConfidence] | None = None, return_regs: RegisterSet | List[architecture.RegisterType] | None = None, name_type: NameType = NameType.NoNameType, pure: BoolWithConfidence | None = None) FunctionBuilder [source]¶
- Parameters:
return_type (TypeBuilder | Type | None) –
calling_convention (CallingConvention | None) –
params (List[Type] | List[FunctionParameter] | List[Tuple[str, Type]] | None) –
var_args (bool | BoolWithConfidence | None) –
stack_adjust (int | OffsetWithConfidence | None) –
platform (_platform.Platform | None) –
confidence (int) –
can_return (BoolWithConfidence | None) –
reg_stack_adjust (Dict[architecture.RegisterName, int | OffsetWithConfidence] | None) –
return_regs (RegisterSet | List[architecture.RegisterType] | None) –
name_type (NameType) –
pure (BoolWithConfidence | None) –
- Return type:
- property calling_convention: CallingConvention¶
- property can_return: BoolWithConfidence¶
- property children: List[TypeBuilder]¶
- property parameters: List[FunctionParameter]¶
Type parameters list (read-only)
- property pure: BoolWithConfidence¶
- property return_value: TypeBuilder¶
- property stack_adjust: OffsetWithConfidence¶
- property stack_adjustment: OffsetWithConfidence¶
- property variable_arguments: BoolWithConfidence¶
FunctionParameter¶
- class FunctionParameter[source]¶
Bases:
object
FunctionParameter(type: Union[ForwardRef(‘TypeBuilder’), ForwardRef(‘Type’)], name: str = ‘’, location: Optional[ForwardRef(‘variable.VariableNameAndType’)] = None)
- __init__(type: TypeBuilder | Type, name: str = '', location: VariableNameAndType | None = None) None ¶
- Parameters:
type (TypeBuilder | Type) –
name (str) –
location (VariableNameAndType | None) –
- Return type:
None
- immutable_copy() FunctionParameter [source]¶
- Return type:
- mutable_copy() FunctionParameter [source]¶
- Return type:
- location: VariableNameAndType | None = None¶
- type: TypeBuilder | Type¶
FunctionType¶
- class FunctionType[source]¶
Bases:
Type
- classmethod create(ret: Type | None = None, params: List[Type] | List[FunctionParameter] | List[Tuple[str, Type]] | None = None, calling_convention: CallingConvention | None = None, variable_arguments: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255), stack_adjust: OffsetWithConfidence = OffsetWithConfidence(value=0, confidence=255), platform: _platform.Platform | None = None, confidence: int = 255, can_return: BoolWithConfidence | bool = True, reg_stack_adjust: Dict[architecture.RegisterName, int | OffsetWithConfidence] | None = None, return_regs: RegisterSet | List[architecture.RegisterType] | None = None, name_type: NameType = NameType.NoNameType, pure: BoolWithConfidence | bool = False) FunctionType [source]¶
- Parameters:
ret (Type | None) –
params (List[Type] | List[FunctionParameter] | List[Tuple[str, Type]] | None) –
calling_convention (CallingConvention | None) –
variable_arguments (bool | BoolWithConfidence) –
stack_adjust (OffsetWithConfidence) –
platform (_platform.Platform | None) –
confidence (int) –
can_return (BoolWithConfidence | bool) –
reg_stack_adjust (Dict[architecture.RegisterName, int | OffsetWithConfidence] | None) –
return_regs (RegisterSet | List[architecture.RegisterType] | None) –
name_type (NameType) –
pure (BoolWithConfidence | bool) –
- Return type:
- property calling_convention: CallingConvention | None¶
Calling convention (read-only)
- property can_return: BoolWithConfidence¶
Whether type can return
- property has_variable_arguments: BoolWithConfidence¶
Whether type has variable arguments (read-only)
- property parameters: List[FunctionParameter]¶
Type parameters list (read-only)
- property parameters_with_all_locations: List[FunctionParameter]¶
Type parameters list with default locations filled in with values (read-only)
- property pure: BoolWithConfidence¶
Whether type is pure
- property stack_adjustment: OffsetWithConfidence¶
Stack adjustment for function (read-only)
InheritedStructureMember¶
- class InheritedStructureMember[source]¶
Bases:
object
InheritedStructureMember(base: ‘NamedTypeReferenceType’, base_offset: int, member: binaryninja.types.StructureMember, member_index: int)
- __init__(base: NamedTypeReferenceType, base_offset: int, member: StructureMember, member_index: int) None ¶
- Parameters:
base (NamedTypeReferenceType) –
base_offset (int) –
member (StructureMember) –
member_index (int) –
- Return type:
None
- base: NamedTypeReferenceType¶
- member: StructureMember¶
IntegerBuilder¶
- class IntegerBuilder[source]¶
Bases:
TypeBuilder
- classmethod create(width: int, sign: bool | BoolWithConfidence = True, alternate_name: str = '', platform: Platform | None = None, confidence: int = 255) IntegerBuilder [source]¶
- Parameters:
- Return type:
IntegerType¶
- class IntegerType[source]¶
Bases:
Type
- classmethod create(width: int, sign: bool | BoolWithConfidence = True, alternate_name: str = '', platform: Platform | None = None, confidence: int = 255) IntegerType [source]¶
- Parameters:
- Return type:
- property signed: BoolWithConfidence¶
Whether type is signed (read-only)
MutableTypeBuilder¶
- class MutableTypeBuilder[source]¶
Bases:
Generic
[TB
]MutableTypeBuilder(type: ~TB, container: Union[ForwardRef(‘binaryview.BinaryView’), ForwardRef(‘typelibrary.TypeLibrary’)], name: binaryninja.types.QualifiedName, platform: Optional[ForwardRef(‘_platform.Platform’)], confidence: int, user: bool = True)
- __init__(type: TB, container: BinaryView | TypeLibrary, name: QualifiedName, platform: Platform | None, confidence: int, user: bool = True) None ¶
- Parameters:
type (TB) –
container (BinaryView | TypeLibrary) –
name (QualifiedName) –
platform (Platform | None) –
confidence (int) –
user (bool) –
- Return type:
None
- container: BinaryView | TypeLibrary¶
- name: QualifiedName¶
- type: TB¶
NameSpace¶
NamedTypeReferenceBuilder¶
- class NamedTypeReferenceBuilder[source]¶
Bases:
TypeBuilder
- __init__(handle: LP_BNTypeBuilder, ntr_builder_handle: LP_BNNamedTypeReferenceBuilder, platform: Platform | None = None, confidence: int = 255)[source]¶
- classmethod create(type_class: NamedTypeReferenceClass = NamedTypeReferenceClass.UnknownNamedTypeClass, type_id: str | None = None, name: Iterable[str | bytes] | str | QualifiedName = '', width: int = 0, align: int = 1, platform: Platform | None = None, confidence: int = 255, const: bool | BoolWithConfidence = False, volatile: bool | BoolWithConfidence = False) NamedTypeReferenceBuilder [source]¶
- Parameters:
type_class (NamedTypeReferenceClass) –
type_id (str | None) –
name (Iterable[str | bytes] | str | QualifiedName) –
width (int) –
align (int) –
platform (Platform | None) –
confidence (int) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
- Return type:
- immutable_copy() NamedTypeReferenceType [source]¶
- Return type:
- static named_type(named_type: NamedTypeReferenceBuilder, width: int = 0, align: int = 1, const: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255), volatile: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255)) NamedTypeReferenceBuilder [source]¶
- Parameters:
named_type (NamedTypeReferenceBuilder) –
width (int) –
align (int) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
- Return type:
- static named_type_from_registered_type(view: BinaryView, name: Iterable[str | bytes] | str | QualifiedName) NamedTypeReferenceBuilder [source]¶
- Parameters:
view (BinaryView) –
name (Iterable[str | bytes] | str | QualifiedName) –
- Return type:
- static named_type_from_type(name: Iterable[str | bytes] | str | QualifiedName, type_class: NamedTypeReferenceClass | None = None) NamedTypeReferenceBuilder [source]¶
- Parameters:
name (Iterable[str | bytes] | str | QualifiedName) –
type_class (NamedTypeReferenceClass | None) –
- Return type:
- static named_type_from_type_and_id(type_id: str, name: Iterable[str | bytes] | str | QualifiedName, type: Type | None = None) NamedTypeReferenceBuilder [source]¶
- Parameters:
- Return type:
- property name: QualifiedName¶
- property named_type_class: NamedTypeReferenceClass¶
NamedTypeReferenceType¶
- class NamedTypeReferenceType[source]¶
Bases:
Type
- classmethod create(named_type_class: NamedTypeReferenceClass, guid: str | None, name: Iterable[str | bytes] | str | QualifiedName, alignment: int = 0, width: int = 0, platform: Platform | None = None, confidence: int = 255, const: bool | BoolWithConfidence = False, volatile: bool | BoolWithConfidence = False) NamedTypeReferenceType [source]¶
- Parameters:
named_type_class (NamedTypeReferenceClass) –
guid (str | None) –
name (Iterable[str | bytes] | str | QualifiedName) –
alignment (int) –
width (int) –
platform (Platform | None) –
confidence (int) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
- Return type:
- classmethod create_from_handle(ntr_handle, alignment: int = 0, width: int = 0, platform: Platform | None = None, confidence: int = 255, const: bool | BoolWithConfidence = False, volatile: bool | BoolWithConfidence = False)[source]¶
Create a NamedTypeReferenceType from a BNNamedTypeReference handle
- Parameters:
alignment (int) –
width (int) –
platform (Platform | None) –
confidence (int) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
- classmethod create_from_registered_type(view: BinaryView, name: Iterable[str | bytes] | str | QualifiedName, platform: Platform | None = None, confidence: int = 255) NamedTypeReferenceType [source]¶
- Parameters:
view (BinaryView) –
name (Iterable[str | bytes] | str | QualifiedName) –
platform (Platform | None) –
confidence (int) –
- Return type:
- classmethod create_from_type(name: Iterable[str | bytes] | str | QualifiedName, type: Type | None, guid: str | None = None, platform: Platform | None = None, confidence: int = 255, const: bool | BoolWithConfidence = False, volatile: bool | BoolWithConfidence = False) NamedTypeReferenceType [source]¶
- Parameters:
name (Iterable[str | bytes] | str | QualifiedName) –
type (Type | None) –
guid (str | None) –
platform (Platform | None) –
confidence (int) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
- Return type:
- static generate_auto_demangled_type_ref(type_class: NamedTypeReferenceClass, name: Iterable[str | bytes] | str | QualifiedName)[source]¶
- Parameters:
type_class (NamedTypeReferenceClass) –
name (Iterable[str | bytes] | str | QualifiedName) –
- static generate_auto_type_ref(type_class: NamedTypeReferenceClass, source: str, name: Iterable[str | bytes] | str | QualifiedName)[source]¶
- Parameters:
type_class (NamedTypeReferenceClass) –
source (str) –
name (Iterable[str | bytes] | str | QualifiedName) –
- target(bv: BinaryView) Type | None [source]¶
Returns the type pointed to by the current type
- Parameters:
bv (BinaryView) – The BinaryView in which this type is defined.
- Returns:
The type this NamedTypeReference is referencing
- Return type:
Optional[Type]
- property name: QualifiedName¶
- property named_type_class: NamedTypeReferenceClass¶
OffsetWithConfidence¶
- class OffsetWithConfidence[source]¶
Bases:
object
OffsetWithConfidence(value: int, confidence: int = 255)
- classmethod from_core_struct(core_struct: BNOffsetWithConfidence) OffsetWithConfidence [source]¶
- Parameters:
core_struct (BNOffsetWithConfidence) –
- Return type:
- static get_core_struct(value: int | OffsetWithConfidence, confidence: int = 255) BNOffsetWithConfidence [source]¶
- Parameters:
value (int | OffsetWithConfidence) –
confidence (int) –
- Return type:
BNOffsetWithConfidence
PointerBuilder¶
- class PointerBuilder[source]¶
Bases:
TypeBuilder
- add_pointer_suffix(suffix: PointerSuffix)[source]¶
Append a suffix to the pointer, must be one defined in
PointerSuffix
. :param suffix: New suffix- Parameters:
suffix (PointerSuffix) –
- classmethod create(type: Type, width: int = 4, arch: Architecture | None = None, const: bool | BoolWithConfidence = False, volatile: bool | BoolWithConfidence = False, ref_type: ReferenceType = ReferenceType.PointerReferenceType, platform: Platform | None = None, confidence: int = 255) PointerBuilder [source]¶
- Parameters:
type (Type) –
width (int) –
arch (Architecture | None) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
ref_type (ReferenceType) –
platform (Platform | None) –
confidence (int) –
- Return type:
- get_pointer_suffix_tokens(base_confidence: int = 255) List[InstructionTextToken] [source]¶
Get the pointer suffix, as a list of tokens :param base_confidence: (optional) Confidence value to combine with the pointer’s confidence :return: Token list
- Parameters:
base_confidence (int) –
- Return type:
- set_pointer_base(base_type: PointerBaseType, base_offset: int)[source]¶
Set the pointer base type and offset :param base_type: Base type, e.g. __based(start) is RelativeToBinaryStartPointerBaseType :param base_offset: Base offset, e.g. __based(start, 0x1000) is 0x1000
- Parameters:
base_type (PointerBaseType) –
base_offset (int) –
- property children: List[TypeBuilder]¶
- property origin: Tuple[QualifiedName, int] | None¶
- property pointer_base_type: PointerBaseType¶
Pointer base type, e.g. __based(start) is RelativeToBinaryStartPointerBaseType
- property pointer_suffix: List[PointerSuffix]¶
Pointer suffix, e.g. __unaligned is [UnalignedSuffix] (read-only)
- property pointer_suffix_string: str¶
Pointer suffix, but as a string, e.g. “__unaligned” (read-only)
- property target: TypeBuilder¶
PointerType¶
- class PointerType[source]¶
Bases:
Type
- classmethod create(arch: Architecture, type: TypeBuilder | Type, const: bool | BoolWithConfidence = False, volatile: bool | BoolWithConfidence = False, ref_type: ReferenceType = ReferenceType.PointerReferenceType, platform: Platform | None = None, confidence: int = 255) PointerType [source]¶
- Parameters:
arch (Architecture) –
type (TypeBuilder | Type) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
ref_type (ReferenceType) –
platform (Platform | None) –
confidence (int) –
- Return type:
- classmethod create_with_width(width: int, type: TypeBuilder | Type, const: bool | BoolWithConfidence = False, volatile: bool | BoolWithConfidence = False, ref_type: ReferenceType | None = None, platform: Platform | None = None, confidence: int = 255) PointerType [source]¶
- Parameters:
width (int) –
type (TypeBuilder | Type) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
ref_type (ReferenceType | None) –
platform (Platform | None) –
confidence (int) –
- Return type:
- static from_bools(const: bool | BoolWithConfidence, volatile: bool | BoolWithConfidence) Tuple[BoolWithConfidence, BoolWithConfidence] [source]¶
- Parameters:
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
- Return type:
- get_pointer_suffix_tokens(base_confidence: int = 255) List[InstructionTextToken] [source]¶
Get the pointer suffix, as a list of tokens :param base_confidence: (optional) Confidence value to combine with the pointer’s confidence :return: Token list
- Parameters:
base_confidence (int) –
- Return type:
- origin(bv: BinaryView | None) Tuple[QualifiedName, int] | None [source]¶
- Parameters:
bv (BinaryView | None) –
- Return type:
Tuple[QualifiedName, int] | None
- property pointer_base_offset: int¶
Pointer base offset, e.g. __based(start, 0x1000) is 0x1000 (read-only)
- property pointer_base_type: PointerBaseType¶
Pointer base type, e.g. __based(start) is RelativeToBinaryStartPointerBaseType (read-only)
- property pointer_suffix: List[PointerSuffix]¶
Pointer suffix, e.g. __unaligned is [UnalignedSuffix] (read-only)
- property pointer_suffix_string: str¶
Pointer suffix, but as a string, e.g. “__unaligned” (read-only)
- property ref_type: ReferenceType¶
QualifiedName¶
- class QualifiedName[source]¶
Bases:
object
- __init__(name: Iterable[str | bytes] | str | QualifiedName | None = None)[source]¶
- Parameters:
name (Iterable[str | bytes] | str | QualifiedName | None) –
- static escape(name: Iterable[str | bytes] | str | QualifiedName, escaping: TokenEscapingType) str [source]¶
- Parameters:
name (Iterable[str | bytes] | str | QualifiedName) –
escaping (TokenEscapingType) –
- Return type:
- static unescape(name: Iterable[str | bytes] | str | QualifiedName, escaping: TokenEscapingType) str [source]¶
- Parameters:
name (Iterable[str | bytes] | str | QualifiedName) –
escaping (TokenEscapingType) –
- Return type:
RegisterSet¶
RegisterStackAdjustmentWithConfidence¶
StructureBuilder¶
- class StructureBuilder[source]¶
Bases:
TypeBuilder
- __init__(handle: LP_BNTypeBuilder, builder_handle: LP_BNStructureBuilder, platform: Platform | None = None, confidence: int = 255)[source]¶
- add_member_at_offset(name: str, type: TypeBuilder | Type, offset: int, overwrite_existing: bool = True, access: MemberAccess = MemberAccess.NoAccess, scope: MemberScope = MemberScope.NoScope) StructureBuilder [source]¶
- Parameters:
name (str) –
type (TypeBuilder | Type) –
offset (int) –
overwrite_existing (bool) –
access (MemberAccess) –
scope (MemberScope) –
- Return type:
- append(type: TypeBuilder | Type, name: str = '', access: MemberAccess = MemberAccess.NoAccess, scope: MemberScope = MemberScope.NoScope) StructureBuilder [source]¶
- Parameters:
type (TypeBuilder | Type) –
name (str) –
access (MemberAccess) –
scope (MemberScope) –
- Return type:
- classmethod create(members: List[StructureMember] | List[Type] | List[Tuple[Type, str]] | None = None, type: StructureVariant = StructureVariant.StructStructureType, packed: bool = False, width: int | None = None, platform: Platform | None = None, confidence: int = 255) StructureBuilder [source]¶
- Parameters:
- Return type:
- immutable_copy() StructureType [source]¶
- Return type:
- insert(offset: int, type: TypeBuilder | Type, name: str = '', overwrite_existing: bool = True, access: MemberAccess = MemberAccess.NoAccess, scope: MemberScope = MemberScope.NoScope)[source]¶
- Parameters:
offset (int) –
type (TypeBuilder | Type) –
name (str) –
overwrite_existing (bool) –
access (MemberAccess) –
scope (MemberScope) –
- member_at_offset(offset: int) StructureMember | None [source]¶
- Parameters:
offset (int) –
- Return type:
StructureMember | None
- replace(index: int, type: TypeBuilder | Type, name: str = '', overwrite_existing: bool = True)[source]¶
- Parameters:
index (int) –
type (TypeBuilder | Type) –
name (str) –
overwrite_existing (bool) –
- property base_structures: List[BaseStructure]¶
Base structure list. Offsets that are not defined by this structure will be filled in by the fields of the base structure(s).
- property children: List[TypeBuilder]¶
- property members: List[StructureMember]¶
Structure member list (read-only)
- property type: StructureVariant¶
StructureMember¶
- class StructureMember[source]¶
Bases:
object
StructureMember(type: ‘Type’, name: str, offset: int, access: binaryninja.enums.MemberAccess = <MemberAccess.NoAccess: 0>, scope: binaryninja.enums.MemberScope = <MemberScope.NoScope: 0>)
- __init__(type: Type, name: str, offset: int, access: MemberAccess = MemberAccess.NoAccess, scope: MemberScope = MemberScope.NoScope) None ¶
- Parameters:
type (Type) –
name (str) –
offset (int) –
access (MemberAccess) –
scope (MemberScope) –
- Return type:
None
- access: MemberAccess = 0¶
- scope: MemberScope = 0¶
StructureType¶
- class StructureType[source]¶
Bases:
Type
- classmethod create(members: List[StructureMember] | List[Type] | List[Tuple[Type, str]] | None = None, packed: bool = False, type: StructureVariant = StructureVariant.StructStructureType, platform: Platform | None = None, confidence: int = 255) StructureType [source]¶
- Parameters:
- Return type:
- classmethod from_core_struct(structure: BNStructure) StructureType [source]¶
- Parameters:
structure (BNStructure) –
- Return type:
- generate_named_type_reference(guid: str, name: Iterable[str | bytes] | str | QualifiedName)[source]¶
- member_at_offset(offset: int) StructureMember [source]¶
- Parameters:
offset (int) –
- Return type:
- member_at_offset_including_inherited(view: BinaryView, offset: int) InheritedStructureMember [source]¶
Returns the member (including inherited member at the specified offset
- Parameters:
view (BinaryView) –
offset (int) –
- Return type:
- members_including_inherited(view: BinaryView | TypeContainer) List[InheritedStructureMember] [source]¶
Returns structure member list, including those inherited by base structures
- Parameters:
view (BinaryView | TypeContainer) –
- Return type:
- mutable_copy() StructureBuilder [source]¶
- Return type:
- resolve_member_or_base_member(view: BinaryView | None, offset: int, size: int, resolve_func: Callable[[NamedTypeReferenceType, StructureType, int, int, int, StructureMember], None], member_index_hint: int | None = None) bool [source]¶
- Parameters:
view (BinaryView | None) –
offset (int) –
size (int) –
resolve_func (Callable[[NamedTypeReferenceType, StructureType, int, int, int, StructureMember], None]) –
member_index_hint (int | None) –
- Return type:
- with_replaced_enumeration(from_enum, to_enum) StructureType [source]¶
- Return type:
- with_replaced_named_type_reference(from_ref, to_ref) StructureType [source]¶
- Return type:
- with_replaced_structure(from_struct, to_struct) StructureType [source]¶
- Return type:
- property alignment¶
Structure alignment
- property base_structures: List[BaseStructure]¶
Base structure list (read-only). Offsets that are not defined by this structure will be filled in by the fields of the base structure(s).
- property members¶
Structure member list (read-only)
- property packed¶
- property pointer_offset¶
Structure pointer offset. Pointers to this structure will implicitly have this offset subtracted from the pointer to arrive at the start of the structure. Effectively, the pointer offset becomes the new start of the structure, and fields before it are accessed using negative offsets from the pointer.
- property propagate_data_var_refs: bool¶
Whether structure field references propagate the references to data variable field values
- property type: StructureVariant¶
- property width¶
Structure width
Symbol¶
- class Symbol[source]¶
Bases:
CoreSymbol
Symbols are defined as one of the following types:
SymbolType
Description
FunctionSymbol
Symbol for function that exists in the current binary
ImportAddressSymbol
Symbol defined in the Import Address Table
ImportedFunctionSymbol
Symbol for a function that is not defined in the current binary
DataSymbol
Symbol for data in the current binary
ImportedDataSymbol
Symbol for data that is not defined in the current binary
ExternalSymbol
Symbols for data and code that reside outside the BinaryView
LibraryFunctionSymbol
Symbols for functions identified as belonging to a shared library
SymbolicFunctionSymbol
Symbols for functions without a concrete implementation or which have been abstractly represented
LocalLabelSymbol
Symbol for a local label in the current binary
Type¶
- class Type[source]¶
Bases:
object
class Type
allows you to interact with the Binary Ninja type system. Note that therepr
andstr
handlers respond differently on type objects.Other related functions that may be helpful include:
parse_type_string
parse_types_from_source
parse_types_from_source_file
- static builder(bv: BinaryView, name: QualifiedName | None = None, id: str | None = None, platform: Platform | None = None, confidence: int = 255) MutableTypeBuilder [source]¶
- Parameters:
bv (BinaryView) –
name (QualifiedName | None) –
id (str | None) –
platform (Platform | None) –
confidence (int) –
- Return type:
- static class_type(members: List[StructureMember] | List[Type] | List[Tuple[Type, str]] | None = None, packed: bool = False) StructureType [source]¶
- Parameters:
- Return type:
- classmethod create(handle: LP_BNType, platform: Platform | None = None, confidence: int = 255) Type [source]¶
- static enumeration(arch: Architecture | None = None, members: List[Tuple[str, int]] | List[str] | List[EnumerationMember] | None = None, width: int | None = None, sign: bool | BoolWithConfidence = False) EnumerationType [source]¶
- Parameters:
arch (Architecture | None) –
members (List[Tuple[str, int]] | List[str] | List[EnumerationMember] | None) –
width (int | None) –
sign (bool | BoolWithConfidence) –
- Return type:
- static enumeration_type(arch, enum: EnumerationBuilder, width: int | None = None, sign: bool = False) EnumerationType [source]¶
- Parameters:
enum (EnumerationBuilder) –
width (int | None) –
sign (bool) –
- Return type:
- static float(width: int, alternate_name: str = '') FloatType [source]¶
float
class method for creating floating point Types.
- static function(ret: Type | None = None, params: List[Type] | List[FunctionParameter] | List[Tuple[str, Type]] | None = None, calling_convention: CallingConvention | None = None, variable_arguments: bool | BoolWithConfidence = False, stack_adjust: OffsetWithConfidence = OffsetWithConfidence(value=0, confidence=255)) FunctionType [source]¶
function
class method for creating a function Type.- Parameters:
ret (Type) – return Type of the function
calling_convention (CallingConvention) – optional argument for the function calling convention
variable_arguments (bool) – optional boolean, true if the function has a variable number of arguments
stack_adjust (OffsetWithConfidence) –
- Return type:
- static generate_auto_demangled_type_id(name: Iterable[str | bytes] | str | QualifiedName) str [source]¶
- static generate_auto_type_id(source: str, name: Iterable[str | bytes] | str | QualifiedName) str [source]¶
- static generate_named_type_reference(guid: str, name: Iterable[str | bytes] | str | QualifiedName) NamedTypeReferenceType [source]¶
- Parameters:
- Return type:
- get_builder(bv: BinaryView) MutableTypeBuilder [source]¶
- Parameters:
bv (BinaryView) –
- Return type:
- get_lines(bv: BinaryView | TypeContainer, name: str, padding_cols: int = 64, collapsed: bool = False, escaping: TokenEscapingType = TokenEscapingType.NoTokenEscapingType) List[TypeDefinitionLine] [source]¶
Get a list of
TypeDefinitionLine
structures for representing a Type in a structured form. This structure uses the same logic as Types View and will expand structures and enumerations unless collapsed is set.- Parameters:
bv (BinaryView) – BinaryView object owning this Type
name (str) – Displayed name of the Type
padding_cols (int) – Maximum number of bytes represented by each padding line
collapsed (bool) – If the type should be collapsed, and not show fields/members
escaping (TokenEscapingType) – How to escape non-parsable strings in types
- Returns:
Returns a list of
TypeDefinitionLine
structures- Return type:
- get_string(escaping: TokenEscapingType = TokenEscapingType.NoTokenEscapingType) str [source]¶
Get string representation for this type
- Parameters:
escaping (TokenEscapingType) – How to escape non-parsable strings in types
- Returns:
String for type
- Return type:
- Example:
>>> Type.array(Type.int(4), 10).get_string() 'int32_t[0xa]'
- get_string_after_name(escaping: TokenEscapingType = TokenEscapingType.NoTokenEscapingType) str [source]¶
Get the string to be printed after this type’s name in a representation
- Parameters:
escaping (TokenEscapingType) – How to escape non-parsable strings in types
- Returns:
String for type representation after the name
- Return type:
- Example:
>>> Type.array(Type.int(4), 10).get_string() 'int32_t[0xa]' >>> Type.array(Type.int(4), 10).get_string_after_name() '[0xa]'
- get_string_before_name(escaping: TokenEscapingType = TokenEscapingType.NoTokenEscapingType) str [source]¶
Get the string to be printed before this type’s name in a representation of it
- Parameters:
escaping (TokenEscapingType) – How to escape non-parsable strings in types
- Returns:
String for type representation before the name
- Return type:
- Example:
>>> Type.array(Type.int(4), 10).get_string() 'int32_t[0xa]' >>> Type.array(Type.int(4), 10).get_string_before_name() 'int32_t'
- get_tokens(base_confidence=255, escaping: TokenEscapingType = TokenEscapingType.NoTokenEscapingType) List[InstructionTextToken] [source]¶
Get a list of tokens for the definition of a type
- Parameters:
base_confidence (int) – Confidence of this type
escaping (TokenEscapingType) – How to escape non-parsable strings in types
- Returns:
List of tokens
- Return type:
List[_function.InstructionTextToken]
- Example:
>>> Type.array(Type.int(4), 10).get_string() 'int32_t[0xa]' >>> Type.array(Type.int(4), 10).get_tokens() ['int32_t', ' ', '[', '0xa', ']']
- get_tokens_after_name(base_confidence=255, escaping: TokenEscapingType = TokenEscapingType.NoTokenEscapingType) List[InstructionTextToken] [source]¶
Get a list of tokens for the definition of a type that are placed after the type name
- Parameters:
base_confidence (int) – Confidence of this type
escaping (TokenEscapingType) – How to escape non-parsable strings in types
- Returns:
List of tokens
- Return type:
List[_function.InstructionTextToken]
- Example:
>>> Type.array(Type.int(4), 10).get_string() 'int32_t[0xa]' >>> Type.array(Type.int(4), 10).get_tokens_after_name() ['[', '0xa', ']']
- get_tokens_before_name(base_confidence=255, escaping: TokenEscapingType = TokenEscapingType.NoTokenEscapingType) List[InstructionTextToken] [source]¶
Get a list of tokens for the definition of a type that are placed before the type name
- Parameters:
base_confidence (int) – Confidence of this type
escaping (TokenEscapingType) – How to escape non-parsable strings in types
- Returns:
List of tokens
- Return type:
List[_function.InstructionTextToken]
- Example:
>>> Type.array(Type.int(4), 10).get_string() 'int32_t[0xa]' >>> Type.array(Type.int(4), 10).get_tokens_before_name() ['int32_t']
- static int(width: int, sign: bool | BoolWithConfidence = True, alternate_name: str = '') IntegerType [source]¶
int
class method for creating an int Type.- Parameters:
- Return type:
- mutable_copy() TypeBuilder [source]¶
- Return type:
- static named_type(named_type: NamedTypeReferenceBuilder) NamedTypeReferenceType [source]¶
- Parameters:
named_type (NamedTypeReferenceBuilder) –
- Return type:
- static named_type_from_registered_type(view: BinaryView, name: Iterable[str | bytes] | str | QualifiedName) NamedTypeReferenceType [source]¶
- Parameters:
view (BinaryView) –
name (Iterable[str | bytes] | str | QualifiedName) –
- Return type:
- static named_type_from_type(name: Iterable[str | bytes] | str | QualifiedName, type: Type) NamedTypeReferenceType [source]¶
- Parameters:
- Return type:
- static named_type_from_type_and_id(type_id: str, name: Iterable[str | bytes] | str | QualifiedName, type: Type | None = None) NamedTypeReferenceType [source]¶
- Parameters:
- Return type:
- static named_type_reference(type_class: NamedTypeReferenceClass, name: Iterable[str | bytes] | str | QualifiedName, type_id: str | None = None, alignment: int = 1, width: int = 0, const: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255), volatile: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255))[source]¶
- Parameters:
type_class (NamedTypeReferenceClass) –
name (Iterable[str | bytes] | str | QualifiedName) –
type_id (str | None) –
alignment (int) –
width (int) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
- static pointer(arch: Architecture, type: Type, const: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255), volatile: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255), ref_type: ReferenceType = ReferenceType.PointerReferenceType, width: int | None = None) PointerType [source]¶
- Parameters:
arch (Architecture) –
type (Type) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
ref_type (ReferenceType) –
width (int | None) –
- Return type:
- static pointer_of_width(width: int, type: Type, const: bool | BoolWithConfidence = False, volatile: bool | BoolWithConfidence = False, ref_type: ReferenceType = ReferenceType.PointerReferenceType) PointerType [source]¶
- Parameters:
width (int) –
type (Type) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
ref_type (ReferenceType) –
- Return type:
- static structure(members: List[StructureMember] | List[Type] | List[Tuple[Type, str]] | None = None, packed: bool = False, type: StructureVariant = StructureVariant.StructStructureType) StructureType [source]¶
- Parameters:
members (List[StructureMember] | List[Type] | List[Tuple[Type, str]] | None) –
packed (bool) –
type (StructureVariant) –
- Return type:
- static structure_type(structure: StructureBuilder) StructureType [source]¶
- Parameters:
structure (StructureBuilder) –
- Return type:
- static union(members: List[StructureMember] | List[Type] | List[Tuple[Type, str]] | None = None, packed: bool = False) StructureType [source]¶
- Parameters:
- Return type:
- static wide_char(width: int, alternate_name: str = '') WideCharType [source]¶
wide_char
class method for creating wide char Types.- Parameters:
- Return type:
- with_replaced_enumeration(from_enum: EnumerationType, to_enum: EnumerationType)[source]¶
- Parameters:
from_enum (EnumerationType) –
to_enum (EnumerationType) –
- with_replaced_named_type_reference(from_ref: NamedTypeReferenceType, to_ref: NamedTypeReferenceType)[source]¶
- Parameters:
from_ref (NamedTypeReferenceType) –
to_ref (NamedTypeReferenceType) –
- with_replaced_structure(from_struct: StructureType, to_struct: StructureType)[source]¶
- Parameters:
from_struct (StructureType) –
to_struct (StructureType) –
- property const¶
Whether type is const (read/write)
- property handle¶
- property name: QualifiedName¶
- property registered_name: NamedTypeReferenceType | None¶
Name of type registered to binary view, if any (read-only)
- property system_call_number: int | None¶
Returns the system call number for a FunctionType object if one exists otherwise None
- property tokens: List[InstructionTextToken]¶
Type string as a list of tokens (read-only)
- property volatile¶
Whether type is volatile (read/write)
TypeBuilder¶
- class TypeBuilder[source]¶
Bases:
object
All TypeBuilder objects should not be instantiated directly but created via
.create
APIs.- __init__(handle: LP_BNTypeBuilder, platform: Platform | None = None, confidence: int = 255)[source]¶
- static array(type: Type, count: int) ArrayBuilder [source]¶
- Parameters:
- Return type:
- static bool() BoolBuilder [source]¶
- Return type:
- classmethod builder(container: BinaryView | TypeLibrary, name: QualifiedName, user: bool = True, platform: Platform | None = None, confidence: int = 255) MutableTypeBuilder[TB] [source]¶
- Parameters:
container (BinaryView | TypeLibrary) –
name (QualifiedName) –
user (bool) –
platform (Platform | None) –
confidence (int) –
- Return type:
- static char(alternate_name: str = '') CharBuilder [source]¶
- Parameters:
alternate_name (str) –
- Return type:
- static class_type(members: List[StructureMember] | List[Type] | List[Tuple[Type, str]] | None = None, packed: bool = False) StructureBuilder [source]¶
- Parameters:
- Return type:
- static enumeration(arch: Architecture | None = None, members: List[Tuple[str, int]] | List[str] | List[EnumerationMember] | None = None, width: int | None = None, sign: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255)) EnumerationBuilder [source]¶
- Parameters:
arch (Architecture | None) –
members (List[Tuple[str, int]] | List[str] | List[EnumerationMember] | None) –
width (int | None) –
sign (bool | BoolWithConfidence) –
- Return type:
- static float(width: int, altname: str = '') FloatBuilder [source]¶
float
class method for creating floating point Types.- Parameters:
- Return type:
- static function(ret: Type | None = None, params: List[Type] | List[FunctionParameter] | List[Tuple[str, Type]] | None = None, calling_convention: CallingConvention | None = None, variable_arguments: bool | BoolWithConfidence | None = None, stack_adjust: int | OffsetWithConfidence | None = None) FunctionBuilder [source]¶
function
class method for creating a function Type.- Parameters:
ret (Type) – return Type of the function
calling_convention (CallingConvention) – optional argument for the function calling convention
variable_arguments (bool) – optional boolean, true if the function has a variable number of arguments
stack_adjust (int | OffsetWithConfidence | None) –
- Return type:
- static int(width: int, sign: bool | BoolWithConfidence = BoolWithConfidence(value=True, confidence=255), altname: str = '') IntegerBuilder [source]¶
int
class method for creating an int Type.- Parameters:
- Return type:
- mutable_copy() TypeBuilder [source]¶
- Return type:
- static named_type_from_registered_type(view: BinaryView, name: QualifiedName) NamedTypeReferenceBuilder [source]¶
- Parameters:
view (BinaryView) –
name (QualifiedName) –
- Return type:
- static named_type_from_type(name: Iterable[str | bytes] | str | QualifiedName, type_class: NamedTypeReferenceClass | None = None) NamedTypeReferenceBuilder [source]¶
- Parameters:
name (Iterable[str | bytes] | str | QualifiedName) –
type_class (NamedTypeReferenceClass | None) –
- Return type:
- static named_type_from_type_and_id(type_id: str, name: Iterable[str | bytes] | str | QualifiedName, type: Type | None = None) NamedTypeReferenceBuilder [source]¶
- Parameters:
- Return type:
- static named_type_reference(type_class: NamedTypeReferenceClass, name: QualifiedName, type_id: str | None = None, alignment: int = 1, width: int = 0, const: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255), volatile: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255)) NamedTypeReferenceBuilder [source]¶
- Parameters:
type_class (NamedTypeReferenceClass) –
name (QualifiedName) –
type_id (str | None) –
alignment (int) –
width (int) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
- Return type:
- static pointer(arch: Architecture, type: Type, const: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255), volatile: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255), ref_type: ReferenceType = ReferenceType.PointerReferenceType) PointerBuilder [source]¶
- Parameters:
arch (Architecture) –
type (Type) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
ref_type (ReferenceType) –
- Return type:
- static pointer_of_width(width: int, type: Type, const: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255), volatile: bool | BoolWithConfidence = BoolWithConfidence(value=False, confidence=255), ref_type: ReferenceType = ReferenceType.PointerReferenceType) PointerBuilder [source]¶
- Parameters:
width (int) –
type (Type) –
const (bool | BoolWithConfidence) –
volatile (bool | BoolWithConfidence) –
ref_type (ReferenceType) –
- Return type:
- static structure(members: List[StructureMember] | List[Type] | List[Tuple[Type, str]] | None = None, packed: bool = False, type: StructureVariant = StructureVariant.StructStructureType) StructureBuilder [source]¶
- Parameters:
members (List[StructureMember] | List[Type] | List[Tuple[Type, str]] | None) –
packed (bool) –
type (StructureVariant) –
- Return type:
- static union(members: List[StructureMember] | List[Type] | List[Tuple[Type, str]] | None = None, packed: bool = False) StructureBuilder [source]¶
- Parameters:
- Return type:
- static void() VoidBuilder [source]¶
- Return type:
- static wide_char(width: int, altname: str = '') WideCharBuilder [source]¶
wide_char
class method for creating wide char Types.- Parameters:
- Return type:
- property children: List[TypeBuilder]¶
- property const: BoolWithConfidence¶
Whether type is const (read/write)
- property finalized¶
- property handle: LP_BNType¶
- property signed: BoolWithConfidence¶
- property system_call_number: int | None¶
Gets/Sets the system call number for a FunctionType object if one exists otherwise None
- property volatile: BoolWithConfidence¶
Whether type is volatile (read/write)
TypeDefinitionLine¶
- class TypeDefinitionLine[source]¶
Bases:
object
TypeDefinitionLine(line_type: binaryninja.enums.TypeDefinitionLineType, tokens: List[ForwardRef(‘_function.InstructionTextToken’)], type: ‘Type’, parent_type: ‘Type’, root_type: ‘Type’, root_type_name: str, base_type: Optional[ForwardRef(‘NamedTypeReferenceType’)], base_offset: int, offset: int, field_index: int)
- __init__(line_type: TypeDefinitionLineType, tokens: List[InstructionTextToken], type: Type, parent_type: Type, root_type: Type, root_type_name: str, base_type: NamedTypeReferenceType | None, base_offset: int, offset: int, field_index: int) None ¶
- Parameters:
line_type (TypeDefinitionLineType) –
tokens (List[InstructionTextToken]) –
type (Type) –
parent_type (Type) –
root_type (Type) –
root_type_name (str) –
base_type (NamedTypeReferenceType | None) –
base_offset (int) –
offset (int) –
field_index (int) –
- Return type:
None
- base_type: NamedTypeReferenceType | None¶
- line_type: TypeDefinitionLineType¶
- tokens: List[InstructionTextToken]¶
TypeFieldReference¶
- class TypeFieldReference[source]¶
Bases:
object
TypeFieldReference(func: Optional[ForwardRef(‘_function.Function’)], arch: Optional[ForwardRef(‘architecture.Architecture’)], address: int, size: int, incomingType: Optional[binaryninja.types.Type])
- __init__(func: Function | None, arch: Architecture | None, address: int, size: int, incomingType: Type | None) None ¶
- Parameters:
func (Function | None) –
arch (Architecture | None) –
address (int) –
size (int) –
incomingType (Type | None) –
- Return type:
None
- arch: Architecture | None¶
TypeReferenceSource¶
- class TypeReferenceSource[source]¶
Bases:
object
TypeReferenceSource(name: binaryninja.types.QualifiedName, offset: int, ref_type: binaryninja.enums.TypeReferenceType)
- __init__(name: QualifiedName, offset: int, ref_type: TypeReferenceType) None ¶
- Parameters:
name (QualifiedName) –
offset (int) –
ref_type (TypeReferenceType) –
- Return type:
None
- name: QualifiedName¶
- ref_type: TypeReferenceType¶
VoidBuilder¶
- class VoidBuilder[source]¶
Bases:
TypeBuilder
VoidType¶
WideCharBuilder¶
- class WideCharBuilder[source]¶
Bases:
TypeBuilder