``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)
| 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 | """ |
nothing calls this directly
no test coverage detected