Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IUnbufferedFile::read ( P6VOID pBuffer,
P6SIZE  cBytesToRead,
P6SIZE pcBytesRead 
)
pure virtual

Read data from the opened file starting at the current file pointer position.

Once the request completes, the current file pointer position is incremented by the number of byes read.

Parameters
pBufferA point to a P6VOID buffer in which to store the data read fromthe file.
cBytesToReadThe number of bytes to read from the file. pBuffer MUST be at least this size.
pcBytesReadThe address of a P6SIZE in which to place the number of bytes actually read into pBuffer. It is possible for this to be less than the number of bytes requested.
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedThe initialize() was not called successfully before calling this method.
P6R::eInvalidArgpBuffer was NULL, cBytesToRead was zero or pcByteRead was NULL
P6R::eEndOfFileThe end of the file was reached.