MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / add_integer_token

Method add_integer_token

python/function.py:3815–3827  ·  view source on GitHub ↗
(
	    self, tokens: List['InstructionTextToken'], int_token: 'InstructionTextToken', addr: int,
	    arch: Optional['architecture.Architecture'] = None
	)

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 2

_get_core_structMethod · 0.80
_from_core_structMethod · 0.45

Tested by

no test coverage detected