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

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
pBufferA pointer to a const P6VOID buffer containing the data to write to the file.
cBytesToWriteA P6SIZE containing the number of bytes to write from pBuffer to the file.
pcBytesWrittenThe 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
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::eDeviceFullThe output device (disk) is full. The write could not complete.