#define CE_ASSERT(...)
Definition Macros.hpp:323
General purpose class used for encapsulating the reading and writing of data from and to various sour...
Definition Stream.hpp:460
A helper data stream that allows filtering the results of another data stream.
Definition Stream.Filtered.hpp:172
bool isSeekable(const Seek mode=Seek::Start) const noexcept override
Checks if the stream is seekable.
Definition Stream.Filtered.hpp:193
size_t write(const void *data, const size_t n) override
Writes data to the data stream from a buffer of raw memory data with length n.
Definition Stream.Filtered.hpp:253
bool invalidate() override
In the stream is buffered, invalidates any buffered read data from the stream.
Definition Stream.Filtered.hpp:241
bool isTellable() const noexcept override
Checks if the stream knows it's current absolute position.
Definition Stream.Filtered.hpp:205
const DataStream & getDataStream() const noexcept
The data stream being filtered.
Definition Stream.Filtered.hpp:189
size_t size() override
Gets the number of bytes available on the stream.
Definition Stream.Filtered.hpp:223
DataStream & getDataStream() noexcept
The data stream being filtered.
Definition Stream.Filtered.hpp:186
FilteredDataStream(FilteredDataStream &&) noexcept=default
DataStream mDataStream
The data stream being filtered.
Definition Stream.Filtered.hpp:175
bool isReadable() const noexcept override
Checks if the stream is readable.
Definition Stream.Filtered.hpp:229
bool isWritable() const noexcept override
Checks if the stream is writable.
Definition Stream.Filtered.hpp:247
bool isSizeKnown() const noexcept override
Checks if the stream knows the size of the data.
Definition Stream.Filtered.hpp:217
size_t tell() override
Gets the absolute stream position, in bytes.
Definition Stream.Filtered.hpp:211
size_t read(void *data, const size_t n) override
Reads data from the data stream to a buffer of raw memory data with length n.
Definition Stream.Filtered.hpp:235
void seek(const std::streamsize position, const Seek mode=Seek::Start) override
Changes the position of the data stream.
Definition Stream.Filtered.hpp:199
FilteredDataStream(DataStream &&dataStream)
Creates a new filtered data stream.
Definition Stream.Filtered.hpp:179
bool flush() override
In the stream is buffered, invalidates any buffered write data from to stream.
Definition Stream.Filtered.hpp:259
A helper data stream that allows filtering the results of another data stream.
Definition Stream.Filtered.hpp:93
const OutputStream & getOutputStream() const noexcept
The data stream being filtered.
Definition Stream.Filtered.hpp:110
OutputStream & getOutputStream() noexcept
The data stream being filtered.
Definition Stream.Filtered.hpp:107
FilteredOutputStream(FilteredOutputStream &&) noexcept=default
size_t size() override
Gets the number of bytes available on the stream.
Definition Stream.Filtered.hpp:144
bool isWritable() const noexcept override
Checks if the stream is writable.
Definition Stream.Filtered.hpp:150
OutputStream mOutputStream
The data stream being filtered.
Definition Stream.Filtered.hpp:96
bool flush() override
In the stream is buffered, invalidates any buffered write data from to stream.
Definition Stream.Filtered.hpp:164
size_t tell() override
Gets the absolute stream position, in bytes.
Definition Stream.Filtered.hpp:132
void seek(const std::streamsize position, const Seek mode=Seek::Start) override
Changes the position of the data stream.
Definition Stream.Filtered.hpp:120
bool isSizeKnown() const noexcept override
Checks if the stream knows the size of the data.
Definition Stream.Filtered.hpp:138
FilteredOutputStream(OutputStream &&outputStream)
Creates a new filtered data stream.
Definition Stream.Filtered.hpp:100
bool isSeekable(const Seek mode=Seek::Start) const noexcept override
Checks if the stream is seekable.
Definition Stream.Filtered.hpp:114
size_t write(const void *data, const size_t n) override
Writes data to the data stream from a buffer of raw memory data with length n.
Definition Stream.Filtered.hpp:158
bool isTellable() const noexcept override
Checks if the stream knows it's current absolute position.
Definition Stream.Filtered.hpp:126
An interface that all data streams must implement.
Definition Stream.hpp:456
A stream that provides write-only stream functionality.
Definition Stream.hpp:233
virtual size_t write(const void *data, size_t n)
Writes data to the data stream from a buffer of raw memory data with length n.
Seek
An enumeration that describes how a data stream should be seeked.
Definition Stream.hpp:72
A stream that provides write-only stream functionality.
Definition Stream.hpp:307
Definition Application.hpp:19
auto move(Vector3 position)
Moves a entity to the given position.
Definition Helpers.hpp:22
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25