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 757 of file ByteStream.cpp.

References pos.

Referenced by init(), and seek().

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

Generated by  Doxygen 1.6.0   Back to index