``write32`` writes the lowest order four 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)
| 10638 | return core.BNWrite16(self._handle, value) |
| 10639 | |
| 10640 | def write32(self, value: int, address: Optional[int] = None, except_on_relocation=True) -> bool: |
| 10641 | """ |
| 10642 | ``write32`` writes the lowest order four bytes from the integer ``value`` to the current offset, using internal endianness. |
| 10643 | |
| 10644 | :param int value: integer value to write. |
| 10645 | :param int address: offset to set the internal offset before writing |
| 10646 | :param bool except_on_relocation: (default True) raise exception when write overlaps a relocation |
| 10647 | :return: boolean True on success, False on failure. |
| 10648 | :rtype: bool |
| 10649 | """ |
| 10650 | if address is not None: |
| 10651 | self.seek(address) |
| 10652 | |
| 10653 | if except_on_relocation and self._view.range_contains_relocation(self.offset, 4): |
| 10654 | raise RelocationWriteException("Attempting to write to a location which has a relocation") |
| 10655 | return core.BNWrite32(self._handle, value) |
| 10656 | |
| 10657 | def write64(self, value: int, address: Optional[int] = None, except_on_relocation=True) -> bool: |
| 10658 | """ |
nothing calls this directly
no test coverage detected