``write64be`` writes the lowest order eight 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 whe
(self, value: int, address: Optional[int] = None, except_on_relocation=True)
| 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 | """ |
| 10746 | ``write64be`` writes the lowest order eight bytes from the big endian integer ``value`` to the current offset. |
| 10747 | |
| 10748 | :param int value: integer value to write. |
| 10749 | :param int address: offset to set the internal offset before writing |
| 10750 | :param bool except_on_relocation: (default True) raise exception when write overlaps a relocation |
| 10751 | :return: boolean True on success, False on failure. |
| 10752 | :rtype: bool |
| 10753 | """ |
| 10754 | if address is not None: |
| 10755 | self.seek(address) |
| 10756 | return self.write(struct.pack(">Q", value), except_on_relocation=except_on_relocation) |
| 10757 | |
| 10758 | def seek(self, offset: int) -> None: |
| 10759 | """ |