virtual int Read(UByte * pbuffer, int numBytes);
Read reads in the given number of bytes or less from the stream.
Parameters |
Description |
UByte * pbuffer |
Pointer to the buffer to read the stream from. |
int numBytes |
Number of bytes to read. |
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.