MemoryFile::Read

MemoryFile::Read
int Read(UByte * pbufer, int numBytes);
Description

Read will read in the given number of bytes or less from the stream.

Parameters
Parameters 
Description 
UByte * pbufer 
Pointer to the buffer to read the stream from. 
int numBytes 
Number of bytes to read. 
Return Value

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