code: def write_short(self, n, pack=Struct('>H').pack):
          
          if 0 <= n <= 0xFFFF:
              self._output_buffer.extend(pack(n))
          else:
              raise ValueError('Short %d out of range 0..0xFFFF', n)
          return self
docs: Write an integer as an unsigned 16-bit value.