Read stream class.
More...
#include <stream.hpp>
◆ ReadStream() [1/2]
edjx::stream::ReadStream::ReadStream |
( |
| ) |
|
|
inline |
Constructs a new empty Read Stream object.
◆ ReadStream() [2/2]
edjx::stream::ReadStream::ReadStream |
( |
uint32_t |
sd | ) |
|
|
inline |
Constructs a new initilized Read Stream object.
- Parameters
-
◆ pipe_to()
Pipes a read stream into a write stream.
After all data is transmitted, both streams are automatically closed.
- Parameters
-
write_stream | Write stream to which data from the read stream will be sent. |
- Returns
- Returns edjx::error::StreamError::Success on success, some other value on failure.
◆ read_all()
Reads and returns all data from the stream until the end of stream.
This method does not close the stream.
- Parameters
-
result | All data received from the read stream will be copied here |
- Returns
- Returns edjx::error::StreamError::Success on success, some other value on failure.
◆ read_chunk()
Read a chunk of binary data from the stream.
- Parameters
-
result | The received chunk of binary data |
- Returns
- Returns edjx::error::StreamError::Success on success, some other value on failure.
The documentation for this class was generated from the following file: