AUI Framework
master
Cross-platform module-based framework for developing C++20 desktop applications
|
Converts a AByteBuffer to an IInputStream. More...
Converts a AByteBuffer to an IInputStream.
Public Member Functions | |
AByteBufferInputStream (AByteBufferView buffer) | |
size_t | read (char *dst, size_t size) override |
Reads up to size bytes from stream. Blocking (waiting for new data) is allowed. More... | |
size_t | available () const |
Public Member Functions inherited from IInputStream | |
size_t | read (std::span< std::byte > destination) |
Reads up to destination.size() bytes from stream. Blocking (waiting for new data) is allowed. More... | |
void | readExact (char *dst, size_t size) |
Reads exact size bytes from stream. Blocking (waiting for new data) is allowed. More... | |
template<typename T > | |
T | deserialize () |
template<typename T > | |
IInputStream & | operator>> (T &dst) |
template<typename T > | |
IInputStream & | operator>> (T &&dst) |
|
overridevirtual |
Reads up to size
bytes from stream. Blocking (waiting for new data) is allowed.
dst | destination buffer |
size | destination buffer's size. > 0 |
Implements IInputStream.
#include <AUI/IO/AByteBufferInputStream.h>