``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)
| 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 | """ |