docs: def write_short(self, n):
          """
          Write an integer as an unsigned 16-bit value.
  
          """
          if (n < 0) or (n > 65535):
              raise ValueError('Octet out of range 0..65535')
          self._flushbits()
          self.out.write(pack('>H', n))