Writes data to the file begining at the current file position.
After the operation is completed, the current file position is incremented by the number of bytes actually written.
- Parameters
-
pBuffer | A pointer to a const P6VOID buffer containing the data to write to the file. |
cBytesToWrite | A P6SIZE containing the number of bytes to write from pBuffer to the file. |
pcBytesWritten | The address of a P6SIZE in which will be placed the number of bytes actually written to the file. It is possible for this to be less than the number of bytes requested to be written to the file. |
- 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::eDeviceFull | The output device (disk) is full. The write could not complete. |