irm-1.6-b3/MDB/Common.php
/**
     * Read data from large object input stream.
     *
     * @param int $lob handle to a lob created by the createLob() function
     * @param blob $data reference to a variable that will hold data to be
     *       read from the large object input stream
     * @param int $length integer value that indicates the largest ammount of
     *       data to be read from the large object input stream.
     * @return mixed length on success, a MDB error on failure
     * @access private
     */
Read data from large object input stream.
@param int $lob handle to a lob created by the createLob() function
@param blob $data reference to a variable that will hold data to be
read from the large object input stream
@param int $length integer value that indicates the largest ammount of
data to be read from the large object input stream.
@return mixed length on success, a MDB error on failure
@access private
Read data from large object input stream . @param int $lob handle to a lob created by the createLob () function @param blob $data reference to a variable that will hold data to be read from the large object input stream @param int $length integer value that indicates the largest ammount of data to be read from the large object input stream . @return mixed length on success a MDB error on failure @access private
function _readResultLob($lob, &$data, $length)
    {
        $result = $this->_retrieveLob($lob);
        if (MDB::isError($result)) {
            return($result);
        }
        $length = min($length, strlen($this->lobs[$lob]['Value']) - $this->lobs[$lob]['Position']);
        $data = substr($this->lobs[$lob]['Value'], $this->lobs[$lob]['Position'], $length);
        $this->lobs[$lob]['Position'] += $length;
        return($length);
    }
function _readResultLob ( $ lob , & $ data , $ length ) { $ result = $ this -> _retrieveLob ( $ lob ) ; if ( MDB :: isError ( $ result ) ) { return ( $ result ) ; } $ length = min ( $ length , strlen ( $ this -> lobs [ $ lob ] [ 'Value' ] ) - $ this -> lobs [ $ lob ] [ 'Position' ] ) ; $ data = substr ( $ this -> lobs [ $ lob ] [ 'Value' ] , $ this -> lobs [ $ lob ] [ 'Position' ] , $ length ) ; $ this -> lobs [ $ lob ] [ 'Position' ] += $ length ; return ( $ length ) ; }
Read data from large object input stream.
Read data from large object input stream .