src/CFPropertyList/CFBinaryPropertyList.php
public function parseBinary($content = null)
    {
        if ($content !== null) {
            $this->content = $content;
        }

        if (empty($this->content)) {
            throw new PListException("Content may not be empty!");
        }

        if (substr($this->content, 0, 8) != 'bplist00') {
            throw new PListException("Invalid binary string!");
        }

        $this->pos = 0;

        $this->parseBinaryString();
    }
public function parseBinary($content = null)
    {
        if ($content !== null) {
            $this->content = $content;
        }

        if (empty($this->content)) {
            throw new PListException("Content may not be empty!");
        }

        if (substr($this->content, 0, 8) != 'bplist00') {
            throw new PListException("Invalid binary string!");
        }

        $this->pos = 0;

        $this->parseBinaryString();
    }
public function parseBinary ( $ content = null ) { if ( $ content !== null ) { $ this -> content = $ content ; } if ( empty ( $ this -> content ) ) { throw new PListException ( "Content may not be empty!" ) ; } if ( substr ( $ this -> content , 0 , 8 ) != 'bplist00' ) { throw new PListException ( "Invalid binary string!" ) ; } $ this -> pos = 0 ; $ this -> parseBinaryString ( ) ; }
parse a binary plist string
@param string $content The stream to read, defaults to {@link $this->content}
@return void
@throws IOException if read error occurs
parse a binary plist string