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

int32 SymbianStdioStream::pos (  ) const [virtual]

Obtains the current value of the stream position indicator of the stream.

the current position indicator, or -1 if an error occurred.

Implements Common::SeekableReadStream.

Definition at line 195 of file symbianstream.cpp.

References _handle.

Referenced by seek().

      TInt pos = 0;
      TSymbianFileEntry* entry = ((TSymbianFileEntry*)(_handle));

      entry->_lastError = entry->_fileHandle.Seek(ESeekCurrent, pos);
      if (entry->_lastError == KErrNone && entry->_inputPos != KErrNotFound) {
            pos += (entry->_inputPos - entry->_inputBufferLen);

      return pos;

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index