IInputStream#
Represents an input stream.
Header: | #include <AUI/IO/IInputStream.h> |
CMake: | aui_link(my_target PUBLIC aui::core) |
Public Methods#
deserialize#
- Returns
- result value
Reads data using AUI serialization (see AUI/Traits/serializable.h)
read#
Reads up to size
bytes from stream. Blocking (waiting for new data) is allowed.
- Sneaky exceptions
- An implementation can throw any exception that subclasses AIOException.
- Arguments
dst
destination buffersize
destination buffer's size. > 0- Returns
- number of read bytes (including 0)
Reads up to destination.size()
bytes from stream. Blocking (waiting for new data) is allowed.
- Sneaky exceptions
- An implementation can throw any exception that subclasses AIOException.
- Arguments
destination
destination buffer- Returns
- number of read bytes (including 0)
readExact#
Reads exact size
bytes from stream. Blocking (waiting for new data) is allowed.
- Sneaky exceptions
- An implementation can throw any exception that subclasses AIOException.
- Arguments
dst
destination buffer.size
destination buffer's size.