Amfphp_Core_Amf_Deserializer::readUTF PHP Method

readUTF() protected method

Then it grabs the next (len) bytes of the resulting string.
protected readUTF ( ) : string
return string The utf8 decoded string
    protected function readUTF()
    {
        $length = $this->readInt();
        // get the length of the string (1st 2 bytes)
        //BUg fix:: if string is empty skip ahead
        if ($length == 0) {
            return '';
        } else {
            $val = substr($this->rawData, $this->currentByte, $length);
            // grab the string
            $this->currentByte += $length;
            // move the seek head to the end of the string
            return $val;
            // return the string
        }
    }