OrientDB/Commands/OrientDBCommandAbstract.php
protected function addBytes($string)
    {
        if ($string instanceof OrientDBRecord) {
            $string = (string) $string;
        }
        $this->addInt(strlen($string));
        $this->requestBytes .= $string;
    }
protected function addBytes($string)
    {
        if ($string instanceof OrientDBRecord) {
            $string = (string) $string;
        }
        $this->addInt(strlen($string));
        $this->requestBytes .= $string;
    }
Add byte stream to outgoing data. Length is calculated automatically
@param string $string