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

Method write32be

python/binaryview.py:10730–10742  ·  view source on GitHub ↗

``write32be`` writes the lowest order four bytes from the big 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 when

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

Source from the content-addressed store, hash-verified

10728 return self.write(struct.pack(">H", value), except_on_relocation=except_on_relocation)
10729
10730 def write32be(self, value: int, address: Optional[int] = None, except_on_relocation=True) -> bool:
10731 """
10732 ``write32be`` writes the lowest order four bytes from the big endian integer ``value`` to the current offset.
10733
10734 :param int value: integer value to write.
10735 :param int address: offset to set the internal offset before writing
10736 :param bool except_on_relocation: (default True) raise exception when write overlaps a relocation
10737 :return: boolean True on success, False on failure.
10738 :rtype: bool
10739 """
10740 if address is not None:
10741 self.seek(address)
10742 return self.write(struct.pack(">I", value), except_on_relocation=except_on_relocation)
10743
10744 def write64be(self, value: int, address: Optional[int] = None, except_on_relocation=True) -> bool:
10745 """

Callers

nothing calls this directly

Calls 2

seekMethod · 0.95
writeMethod · 0.95

Tested by

no test coverage detected