src/CFPropertyList/CFBinaryPropertyList.php
protected function readBinaryString($length)
    {
        if ($length == 0) {
            $buff = "";
        } else {
            if (strlen($buff = substr($this->content, $this->pos, $length)) != $length) {
                throw IOException::readError("");
            }
            $this->pos += $length;
        }

        if (!isset($this->uniqueTable[$buff])) {
            $this->uniqueTable[$buff] = true;
        }
        return new CFString($buff);
    }
protected function readBinaryString($length)
    {
        if ($length == 0) {
            $buff = "";
        } else {
            if (strlen($buff = substr($this->content, $this->pos, $length)) != $length) {
                throw IOException::readError("");
            }
            $this->pos += $length;
        }

        if (!isset($this->uniqueTable[$buff])) {
            $this->uniqueTable[$buff] = true;
        }
        return new CFString($buff);
    }
protected function readBinaryString ( $ length ) { if ( $ length == 0 ) { $ buff = "" ; } else { if ( strlen ( $ buff = substr ( $ this -> content , $ this -> pos , $ length ) ) != $ length ) { throw IOException :: readError ( "" ) ; } $ this -> pos += $ length ; } if ( ! isset ( $ this -> uniqueTable [ $ buff ] ) ) { $ this -> uniqueTable [ $ buff ] = true ; } return new CFString ( $ buff ) ; }
Read a string value, usually coded as utf8
@param integer $length The length (in bytes) of the string value
@return CFString The string value, utf8 encoded
@throws IOException if read error occurs
Read a string value usually coded as utf8