PhpAmqpLib/Wire/AMQPWriter.php
public function write_short($n)
    {
        if ($n < 0 || $n > 65535) {
            throw new AMQPInvalidArgumentException('Short out of range: ' . $n);
        }

        $this->out .= pack('n', $n);

        return $this;
    }
public function write_short($n)
    {
        if ($n < 0 || $n > 65535) {
            throw new AMQPInvalidArgumentException('Short out of range: ' . $n);
        }

        $this->out .= pack('n', $n);

        return $this;
    }
public function write_short ( $ n ) { if ( $ n < 0 || $ n > 65535 ) { throw new AMQPInvalidArgumentException ( 'Short out of range: ' . $ n ) ; } $ this -> out .= pack ( 'n' , $ n ) ; return $ this ; }
Write an integer as an unsigned 16-bit value

@param int $n
@return $this
@throws \PhpAmqpLib\Exception\AMQPInvalidArgumentException
Write an integer as an unsigned 16 - bit value