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

uint32 File::read ( void *  dataPtr,
uint32  dataSize 
) [virtual]

Read data from the stream. Subclasses must implement this method; all other read methods are implemented using it.

Parameters:
dataPtr pointer to a buffer into which the data is read
dataSize number of bytes to be read
Returns:
the number of bytes which were actually read.

Implements Common::ReadStream.

Definition at line 162 of file file.cpp.

References _handle, and Common::ReadStream::read().

                                       {
      assert(_handle);
      return _handle->read(ptr, len);
}


Generated by  Doxygen 1.6.0   Back to index