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

Method write64le

python/binaryview.py:10702–10714  ·  view source on GitHub ↗

``write64le`` writes the lowest order eight bytes from the little endian integer ``value`` to the current offset. :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 exception

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

Source from the content-addressed store, hash-verified

10700 return self.write(struct.pack("<I", value), except_on_relocation=except_on_relocation)
10701
10702 def write64le(self, value: int, address: Optional[int] = None, except_on_relocation=True) -> bool:
10703 """
10704 ``write64le`` writes the lowest order eight bytes from the little endian integer ``value`` to the current offset.
10705
10706 :param int value: integer value to write.
10707 :param int address: offset to set the internal offset before writing
10708 :param bool except_on_relocation: (default True) raise exception when write overlaps a relocation
10709 :return: boolean True on success, False on failure.
10710 :rtype: bool
10711 """
10712 if address is not None:
10713 self.seek(address)
10714 return self.write(struct.pack("<Q", value), except_on_relocation=except_on_relocation)
10715
10716 def write16be(self, value: int, address: Optional[int] = None, except_on_relocation=True) -> bool:
10717 """

Callers

nothing calls this directly

Calls 2

seekMethod · 0.95
writeMethod · 0.95

Tested by

no test coverage detected