``write16be`` writes the lowest order two 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 when
(self, value: int, address: Optional[int] = None, except_on_relocation=True)
| 10714 | return self.write(struct.pack("<Q", value), except_on_relocation=except_on_relocation) |
| 10715 | |
| 10716 | def write16be(self, value: int, address: Optional[int] = None, except_on_relocation=True) -> bool: |
| 10717 | """ |
| 10718 | ``write16be`` writes the lowest order two bytes from the big endian integer ``value`` to the current offset. |
| 10719 | |
| 10720 | :param int value: integer value to write. |
| 10721 | :param int address: offset to set the internal offset before writing |
| 10722 | :param bool except_on_relocation: (default True) raise exception when write overlaps a relocation |
| 10723 | :return: boolean True on success, False on failure. |
| 10724 | :rtype: bool |
| 10725 | """ |
| 10726 | if address is not None: |
| 10727 | self.seek(address) |
| 10728 | return self.write(struct.pack(">H", value), except_on_relocation=except_on_relocation) |
| 10729 | |
| 10730 | def write32be(self, value: int, address: Optional[int] = None, except_on_relocation=True) -> bool: |
| 10731 | """ |