int Read(UByte * pbufer, int numBytes);
Read will read in the given number of bytes or less from the stream.
Parameters |
Description |
UByte * pbufer |
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