typeprinter module

binaryninja.typeprinter.CoreTypePrinter([handle])

binaryninja.typeprinter.Settings([...])

Settings provides a way to define and access settings in a hierarchical fashion.

binaryninja.typeprinter.TypePrinter([handle])

class CoreTypePrinter(handle=None)[source]

Bases: binaryninja.typeprinter.TypePrinter

get_type_lines(type: binaryninja.types.Type, data: binaryninja.binaryview.BinaryView, name: Union[Iterable[Union[str, bytes]], str, QualifiedName], line_width=80, collapsed=False, escaping: binaryninja.enums.TokenEscapingType = TokenEscapingType.BackticksTokenEscapingType) List[binaryninja.types.TypeDefinitionLine][source]
Parameters
Return type

List[binaryninja.types.TypeDefinitionLine]

get_type_string(type: binaryninja.types.Type, platform: Optional[binaryninja.platform.Platform] = None, name: Union[Iterable[Union[str, bytes]], str, QualifiedName] = '', escaping: binaryninja.enums.TokenEscapingType = TokenEscapingType.BackticksTokenEscapingType) str[source]
Parameters
Return type

str

get_type_string_after_name(type: binaryninja.types.Type, platform: Optional[binaryninja.platform.Platform] = None, escaping: binaryninja.enums.TokenEscapingType = TokenEscapingType.BackticksTokenEscapingType) str[source]
Parameters
Return type

str

get_type_string_before_name(type: binaryninja.types.Type, platform: Optional[binaryninja.platform.Platform] = None, escaping: binaryninja.enums.TokenEscapingType = TokenEscapingType.BackticksTokenEscapingType) str[source]
Parameters
Return type

str

get_type_tokens(type: binaryninja.types.Type, platform: Optional[binaryninja.platform.Platform] = None, name: Union[Iterable[Union[str, bytes]], str, QualifiedName] = '', base_confidence: int = 255, escaping: binaryninja.enums.TokenEscapingType = TokenEscapingType.BackticksTokenEscapingType) List[binaryninja.architecture.InstructionTextToken][source]
Parameters
Return type

List[binaryninja.architecture.InstructionTextToken]

get_type_tokens_after_name(type: binaryninja.types.Type, platform: Optional[binaryninja.platform.Platform] = None, base_confidence: int = 255, parent_type: Optional[binaryninja.types.Type] = None, escaping: binaryninja.enums.TokenEscapingType = TokenEscapingType.BackticksTokenEscapingType) List[binaryninja.architecture.InstructionTextToken][source]
Parameters
Return type

List[binaryninja.architecture.InstructionTextToken]

get_type_tokens_before_name(type: binaryninja.types.Type, platform: Optional[binaryninja.platform.Platform] = None, base_confidence: int = 255, parent_type: Optional[binaryninja.types.Type] = None, escaping: binaryninja.enums.TokenEscapingType = TokenEscapingType.BackticksTokenEscapingType) List[binaryninja.architecture.InstructionTextToken][source]
Parameters
Return type

List[binaryninja.architecture.InstructionTextToken]

class TypePrinter(handle=None)[source]

Bases: object

get_type_lines(type: binaryninja.types.Type, data: binaryninja.binaryview.BinaryView, name: Union[Iterable[Union[str, bytes]], str, QualifiedName], line_width=80, collapsed=False, escaping: binaryninja.enums.TokenEscapingType = TokenEscapingType.BackticksTokenEscapingType) List[binaryninja.types.TypeDefinitionLine][source]
Parameters
Return type

List[binaryninja.types.TypeDefinitionLine]

get_type_string(type: binaryninja.types.Type, platform: Optional[binaryninja.platform.Platform] = None, name: Union[Iterable[Union[str, bytes]], str, QualifiedName] = '', escaping: binaryninja.enums.TokenEscapingType = TokenEscapingType.BackticksTokenEscapingType) str[source]
Parameters
Return type

str

get_type_string_after_name(type: binaryninja.types.Type, platform: Optional[binaryninja.platform.Platform] = None, escaping: binaryninja.enums.TokenEscapingType = TokenEscapingType.BackticksTokenEscapingType) str[source]
Parameters
Return type

str

get_type_string_before_name(type: binaryninja.types.Type, platform: Optional[binaryninja.platform.Platform] = None, escaping: binaryninja.enums.TokenEscapingType = TokenEscapingType.BackticksTokenEscapingType) str[source]
Parameters
Return type

str

get_type_tokens(type: binaryninja.types.Type, platform: Optional[binaryninja.platform.Platform] = None, name: Union[Iterable[Union[str, bytes]], str, QualifiedName] = '', base_confidence: int = 255, escaping: binaryninja.enums.TokenEscapingType = TokenEscapingType.BackticksTokenEscapingType) List[binaryninja.architecture.InstructionTextToken][source]
Parameters
Return type

List[binaryninja.architecture.InstructionTextToken]

get_type_tokens_after_name(type: binaryninja.types.Type, platform: Optional[binaryninja.platform.Platform] = None, base_confidence: int = 255, parent_type: Optional[binaryninja.types.Type] = None, escaping: binaryninja.enums.TokenEscapingType = TokenEscapingType.BackticksTokenEscapingType) List[binaryninja.architecture.InstructionTextToken][source]
Parameters
Return type

List[binaryninja.architecture.InstructionTextToken]

get_type_tokens_before_name(type: binaryninja.types.Type, platform: Optional[binaryninja.platform.Platform] = None, base_confidence: int = 255, parent_type: Optional[binaryninja.types.Type] = None, escaping: binaryninja.enums.TokenEscapingType = TokenEscapingType.BackticksTokenEscapingType) List[binaryninja.architecture.InstructionTextToken][source]
Parameters
Return type

List[binaryninja.architecture.InstructionTextToken]

register()[source]
name = None
to_bytes(field)[source]