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

Method write64

python/binaryview.py:10657–10672  ·  view source on GitHub ↗

``write64`` writes the lowest order eight bytes from the integer ``value`` to the current offset, using internal endianness. :param int value: integer value to write. :param int address: offset to set the internal offset before writing :param bool except_on_relocation: (default True) raise

(self, value: int, address: Optional[int] = None, except_on_relocation=True)

Source from the content-addressed store, hash-verified

10655 return core.BNWrite32(self._handle, value)
10656
10657 def write64(self, value: int, address: Optional[int] = None, except_on_relocation=True) -> bool:
10658 """
10659 ``write64`` writes the lowest order eight bytes from the integer ``value`` to the current offset, using internal endianness.
10660
10661 :param int value: integer value to write.
10662 :param int address: offset to set the internal offset before writing
10663 :param bool except_on_relocation: (default True) raise exception when write overlaps a relocation
10664 :return: boolean True on success, False on failure.
10665 :rtype: bool
10666 """
10667 if address is not None:
10668 self.seek(address)
10669
10670 if except_on_relocation and self._view.range_contains_relocation(self.offset, 8):
10671 raise RelocationWriteException("Attempting to write to a location which has a relocation")
10672 return core.BNWrite64(self._handle, value)
10673
10674 def write16le(self, value: int, address: Optional[int] = None, except_on_relocation=True) -> bool:
10675 """

Callers

nothing calls this directly

Calls 3

seekMethod · 0.95

Tested by

no test coverage detected