◆ read()
virtual int read |
( |
void * |
buffer, |
|
|
int |
size |
|
) |
| |
|
inlinevirtual |
Read some bytes from the stream and store them in the given buffer. This method does not ever read as many bytes as available in the buffer even if the stream is not ended. Insteadn a read returning 0 bytes means the end of stream is reached.
- Parameters
-
buffer | Buffer to write bytes in. |
size | Size of the buffer. |
- Returns
- Number of read bytes, 0 for end of stream, -1 for an error.
Implements InStream.
The documentation for this class was generated from the following file: