Qore Programming Language Reference Manual
0.8.12
|
This class implements the OutputStream interface for writing bytes to a Binary buffer. More...
Public Member Functions | |
nothing | bulkWrite (binary data, timeout timeout_ms=-1) |
Writes bytes to the input stream. More... | |
nothing | close () |
Closes the output stream and releases any resources. More... | |
constructor () | |
Creates the BinaryOutputStream. | |
binary | getData () |
Returns the data written to the stream, clearing the internal buffer. More... | |
nothing | write (int value, timeout timeout_ms=-1) |
Writes a single byte to the output stream. More... | |
![]() | |
constructor () | |
Constructor. More... | |
This class implements the OutputStream interface for writing bytes to a Binary buffer.
|
virtual |
Writes bytes to the input stream.
data | the data to write |
timeout_ms | ignored |
Implements Qore::OutputStream.
|
virtual |
Closes the output stream and releases any resources.
Any methods called on a closed output stream will thrown an IO-ERROR exception.
IO-ERROR | if an I/O error occurs |
Implements Qore::OutputStream.
binary Qore::BinaryOutputStream::getData | ( | ) |
Returns the data written to the stream, clearing the internal buffer.
|
virtual |
Writes a single byte to the output stream.
value | the byte (0 - 255) to write to the output stream, only the least significant 8 bits are used, the rest is ignored |
timeout_ms | ignored |
Implements Qore::OutputStream.