Logo Search packages:      
Sourcecode: djvulibre version File versions  Download package

int ByteStream::size ( void   )  const [inline, virtual, inherited]

Returns the total number of bytes contained in the buffer, file, etc. Valid offsets for function seek# range from 0 to the value returned by this function.

Reimplemented in ByteStream::Memory, and ByteStream::Static.

Definition at line 360 of file ByteStream.h.

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

Referenced by DjVuANT::encode_raw(), DjVuImage::get_anno(), ByteStream::get_data(), DjVuImage::get_meta(), and DjVuImage::get_text().

  ByteStream *bs=const_cast<ByteStream *>(this);
  int bsize=(-1);
  long pos=tell();
  return bsize;

Generated by  Doxygen 1.6.0   Back to index