evseevnn\Cassandra\Protocol\Response\DataStream::readBytes PHP Method

readBytes() public method

Read bytes.
public readBytes ( boolean $isCollectionElement = false ) : string
$isCollectionElement boolean
return string
    public function readBytes($isCollectionElement = false)
    {
        if ($isCollectionElement) {
            $this->readShort();
        }
        $length = $this->readInt();
        if ($length == -1) {
            return null;
        }
        return $this->read($length);
    }