( self, tokens: List['InstructionTextToken'], int_token: 'InstructionTextToken', addr: int, arch: Optional['architecture.Architecture'] = None )
| 3813 | return core.BNIsIntegerToken(token.type) |
| 3814 | |
| 3815 | def add_integer_token( |
| 3816 | self, tokens: List['InstructionTextToken'], int_token: 'InstructionTextToken', addr: int, |
| 3817 | arch: Optional['architecture.Architecture'] = None |
| 3818 | ) -> None: |
| 3819 | if arch is not None: |
| 3820 | arch = arch.handle |
| 3821 | in_token_obj = InstructionTextToken._get_core_struct([int_token]) |
| 3822 | count = ctypes.c_ulonglong() |
| 3823 | new_tokens = core.BNGetDisassemblyTextRendererIntegerTokens(self.handle, in_token_obj, arch, addr, count) |
| 3824 | assert new_tokens is not None |
| 3825 | result = InstructionTextToken._from_core_struct(new_tokens, count.value) |
| 3826 | tokens += result |
| 3827 | core.BNFreeInstructionText(new_tokens, count.value) |
| 3828 | |
| 3829 | def wrap_comment( |
| 3830 | self, lines: List['DisassemblyTextLine'], cur_line: 'DisassemblyTextLine', comment: str, |
nothing calls this directly
no test coverage detected