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

Method write32le

python/binaryview.py:10688–10700  ·  view source on GitHub ↗

``write32le`` writes the lowest order four 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 w

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

Source from the content-addressed store, hash-verified

10686 return self.write(struct.pack("<H", value), except_on_relocation=except_on_relocation)
10687
10688 def write32le(self, value: int, address: Optional[int] = None, except_on_relocation=True) -> bool:
10689 """
10690 ``write32le`` writes the lowest order four bytes from the little endian integer ``value`` to the current offset.
10691
10692 :param int value: integer value to write.
10693 :param int address: offset to set the internal offset before writing
10694 :param bool except_on_relocation: (default True) raise exception when write overlaps a relocation
10695 :return: boolean True on success, False on failure.
10696 :rtype: bool
10697 """
10698 if address is not None:
10699 self.seek(address)
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 """

Callers

nothing calls this directly

Calls 2

seekMethod · 0.95
writeMethod · 0.95

Tested by

no test coverage detected