Logo Search packages:      
Sourcecode: djvulibre version File versions

bool DataPool::has_data ( int  start,
int  length 
)

Returns TRUE# if all data available for offsets from start# till start+length-1#. If length# is negative, the range is assumed to extend up to the end of the DataPool#. This function works both for connected and not connected DataPool::s. Once it returned TRUE# for some offsets range, you can be sure that the subsequent {get_data}() request will not block.

Definition at line 1091 of file DataPool.cpp.

References GURL::is_local_file_url().

{
   if (dlength<0 && length>0)
     dlength=length-dstart;
   return (pool?(pool->has_data(start+dstart, dlength))
     :((furl.is_local_file_url())?(start+dstart+dlength<=length)
       :((dlength<0)?is_eof()
         :(block_list->get_bytes(dstart, dlength)==dlength))));
}


Generated by  Doxygen 1.6.0   Back to index