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
-
pBuffer | A point to a P6VOID buffer in which to store the data read fromthe file. |
cBytesToRead | The number of bytes to read from the file. pBuffer MUST be at least this size. |
pcBytesRead | The 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
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | The initialize() was not called successfully before calling this method. |
P6R::eInvalidArg | pBuffer was NULL, cBytesToRead was zero or pcByteRead was NULL |
P6R::eEndOfFile | The end of the file was reached. |