MemoryFile::Write

MemoryFile::Write
int Write(const UByte * pbuffer, int numBytes);
Description

Write writes in the given number of bytes or less to the stream.

Parameters
Parameters 
Description 
int numBytes 
Number of bytes to be written. 
pbufer 
Pointer to the buffer to write to. 
Return Value

An int value containing the number of bytes written, -1 for error. If 0 or < numBytes , no more bytes available; end of file or the other side of stream is closed.