Represents an input stream with updating reading position.
#include <AUI/IO/ISeekableInputStream.h>
|
| virtual void | seek (std::streamoff offset, ASeekDir seekDir)=0 |
| | change reading position, a way of changing depends on seekDir parameter
|
| |
| virtual std::streampos | tell () noexcept=0 |
| | return current reading position
|
| |
| virtual bool | isEof ()=0 |
| | returns true if end of stream has been reached
|
| |
| size_t | fileSize () |
| | return size of the stream
|
| |
| virtual size_t | read (char *dst, size_t size)=0 |
| | Reads up to size bytes from stream. Blocking (waiting for new data) is allowed.
|
| |
| size_t | read (std::span< std::byte > destination) |
| | Reads up to destination.size() bytes from stream. Blocking (waiting for new data) is allowed.
|
| |
| void | readExact (char *dst, size_t size) |
| | Reads exact size bytes from stream. Blocking (waiting for new data) is allowed.
|
| |
| template<typename T> |
| T | deserialize () |
| |
| template<typename T> |
| IInputStream & | operator>> (T &dst) |
| |
| template<typename T> |
| IInputStream & | operator>> (T &&dst) |
| |
◆ fileSize()#
| size_t ISeekableInputStream::fileSize |
( |
| ) |
|
|
inline |
- Returns
- size of the stream
◆ isEof()#
| virtual bool ISeekableInputStream::isEof |
( |
| ) |
|
|
pure virtual |
◆ seek()#
| virtual void ISeekableInputStream::seek |
( |
std::streamoff | offset, |
|
|
ASeekDir | seekDir ) |
|
pure virtual |
◆ tell()#
| virtual std::streampos ISeekableInputStream::tell |
( |
| ) |
|
|
nodiscardpure virtualnoexcept |