library/AMQP/Wire/Writer.php
public function writeShortStr($s)
    {
        $this->flushBits();
        if (strlen($s) > 255) {
            throw new \InvalidArgumentException('String too long');
        }

        $this->writeOctet(strlen($s));
        $this->out .= $s;
        return $this;
    }
public function writeShortStr($s)
    {
        $this->flushBits();
        if (strlen($s) > 255) {
            throw new \InvalidArgumentException('String too long');
        }

        $this->writeOctet(strlen($s));
        $this->out .= $s;
        return $this;
    }
public function writeShortStr ( $ s ) { $ this -> flushBits ( ) ; if ( strlen ( $ s ) > 255 ) { throw new \ InvalidArgumentException ( 'String too long' ) ; } $ this -> writeOctet ( strlen ( $ s ) ) ; $ this -> out .= $ s ; return $ this ; }
Write a string up to 255 bytes long after encoding.
Assume UTF-8 encoding.

@param $s

@return Writer
@throws \InvalidArgumentException
Write a string up to 255 bytes long after encoding . Assume UTF - 8 encoding .