Qore Programming Language Reference Manual
0.8.12
|
This class implements the InputStream interface for reading bytes from a Binary variable. More...
Public Member Functions | |
*binary | bulkRead (int limit, timeout timeout_ms=-1) |
Reads bytes (up to a specified limit) from the input stream; returns NOTHING if there are no more bytes in the stream. More... | |
nothing | close () |
Closes the input stream and releases any resources. More... | |
constructor (binary src) | |
Creates the BinaryInputStream based on the Binary given. More... | |
int | read (timeout timeout_ms=-1) |
Reads a single byte from the input stream; returns -1 if the end of the stream has been reached. More... | |
![]() | |
constructor () | |
Constructor. More... | |
This class implements the InputStream interface for reading bytes from a Binary variable.
Reads bytes (up to a specified limit) from the input stream; returns NOTHING if there are no more bytes in the stream.
limit | the maximum number of bytes to read |
timeout_ms | ignored |
Implements Qore::InputStream.
|
virtual |
Closes the input stream and releases any resources.
Any methods called on a closed input stream will thrown an IO-ERROR exception.
IO-ERROR | if an I/O error occurs |
Implements Qore::InputStream.
Qore::BinaryInputStream::constructor | ( | binary | src | ) |
Creates the BinaryInputStream based on the Binary given.
src | the Binary to read bytes from |
|
virtual |
Reads a single byte from the input stream; returns -1 if the end of the stream has been reached.
timeout_ms | ignored |
Implements Qore::InputStream.