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

Method set_comment_at

python/function.py:1669–1681  ·  view source on GitHub ↗

``set_comment_at`` sets a comment for the current function at the address specified :param int addr: virtual address within the current function to apply the comment to :param str comment: string comment to apply :rtype: None :Example: >>> current_function.set_comment_at(here, "hi")

(self, addr: int, comment: str)

Source from the content-addressed store, hash-verified

1667 return core.BNGetCommentForAddress(self.handle, addr)
1668
1669 def set_comment_at(self, addr: int, comment: str) -> None:
1670 """
1671 ``set_comment_at`` sets a comment for the current function at the address specified
1672
1673 :param int addr: virtual address within the current function to apply the comment to
1674 :param str comment: string comment to apply
1675 :rtype: None
1676 :Example:
1677
1678 >>> current_function.set_comment_at(here, "hi")
1679
1680 """
1681 core.BNSetCommentForAddress(self.handle, addr, comment)
1682
1683 def add_user_code_ref(
1684 self, from_addr: int, to_addr: int, arch: Optional['architecture.Architecture'] = None

Callers 4

_set_current_commentFunction · 0.45
parse_id0_section_infoFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected