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

        return new CFData($buff, false);
    }
protected function readBinaryData($length)
    {
        if ($length == 0) {
            $buff = "";
        } else {
            $buff = substr($this->content, $this->pos, $length);
            if (strlen($buff) != $length) {
                throw IOException::readError("");
            }
            $this->pos += $length;
        }

        return new CFData($buff, false);
    }
protected function readBinaryData ( $ length ) { if ( $ length == 0 ) { $ buff = "" ; } else { $ buff = substr ( $ this -> content , $ this -> pos , $ length ) ; if ( strlen ( $ buff ) != $ length ) { throw IOException :: readError ( "" ) ; } $ this -> pos += $ length ; } return new CFData ( $ buff , false ) ; }
Read a data value
@param integer $length The length (in bytes) of the integer value, coded as „set bit $length to 1”
@return CFData The data value
@throws IOException if read error occurs
Read a data value