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: Type, data: BinaryView, name: Union[Iterable[Union[str, bytes]], str, QualifiedName], line_width=80, collapsed=False, escaping: TokenEscapingType = TokenEscapingType.BackticksTokenEscapingType) List[TypeDefinitionLine][source]
Parameters
Return type

List[TypeDefinitionLine]

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

str

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

str

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

str

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

List[InstructionTextToken]

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

List[InstructionTextToken]

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

List[InstructionTextToken]

class TypePrinter(handle=None)[source]

Bases: object

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

List[TypeDefinitionLine]

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

str

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

str

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

str

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

List[InstructionTextToken]

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

List[InstructionTextToken]

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

List[InstructionTextToken]

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