DelegatedFile::Read

DelegatedFile::Read
virtual int Read(UByte * pbuffer, int numBytes);
Description

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

Parameters
Parameters 
Description 
UByte * pbuffer 
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.

See Also