Logo Search packages:      
Sourcecode: djvulibre version File versions

void IFFByteStream::seek_close_chunk ( void   ) 

This is identical to the above, plus it adds a seek to the start of the next chunk. This way we catch EOF errors with the current chunk.

Definition at line 427 of file IFFByteStream.cpp.

References close_chunk(), and ByteStream::seek().

Referenced by DjVuFile::contains_chunk(), DjVuFile::get_chunk_name(), DjVuFile::get_chunks_number(), and DjVuFile::process_incl_chunks().

{
  close_chunk();
  if ((dir <= 0)&&((!ctx)||(ctx->bComposite))&&(seekto > offset))
  {
    bs->seek(seekto);
    offset = seekto;
  }
}


Generated by  Doxygen 1.6.0   Back to index