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

long ByteStream::Stdio::tell ( void   ) const [virtual]

Returns the offset of the current position in the ByteStream. This function {must} be implemented by each subclass of ByteStream#.

Implements ByteStream.

Definition at line 754 of file ByteStream.cpp.

{
  long x = ftell(fp);
  if (x >= 0)
  {
    Stdio *sbs=const_cast<Stdio *>(this);
    (sbs->pos) = x;
  }else
  {
    x=pos;
  }
  return x;
}

Generated by  Doxygen 1.6.0   Back to index