``write16le`` writes the lowest order two 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 wh
(self, value: int, address: Optional[int] = None, except_on_relocation=True)
| 10672 | return core.BNWrite64(self._handle, value) |
| 10673 | |
| 10674 | def write16le(self, value: int, address: Optional[int] = None, except_on_relocation=True) -> bool: |
| 10675 | """ |
| 10676 | ``write16le`` writes the lowest order two bytes from the little endian integer ``value`` to the current offset. |
| 10677 | |
| 10678 | :param int value: integer value to write. |
| 10679 | :param int address: offset to set the internal offset before writing |
| 10680 | :param bool except_on_relocation: (default True) raise exception when write overlaps a relocation |
| 10681 | :return: boolean True on success, False on failure. |
| 10682 | :rtype: bool |
| 10683 | """ |
| 10684 | if address is not None: |
| 10685 | self.seek(address) |
| 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 | """ |