|
| | BufferedOutputStream (OutputStream &&outputStream, size_t bufferSize=1024) |
| | Creates a new buffer data stream.
|
| |
| | BufferedOutputStream (const BufferedOutputStream &)=delete |
| |
| | BufferedOutputStream (BufferedOutputStream &&) noexcept |
| |
| | ~BufferedOutputStream () final |
| | Destroys the buffered data stream.
|
| |
| void | seek (std::streamsize position, Seek mode=Seek::Start) final |
| | Changes the position of the data stream.
|
| |
| size_t | tell () final |
| | Gets the absolute stream position, in bytes.
|
| |
| size_t | write (const void *data, size_t n) final |
| | Writes data to the data stream from a buffer of raw memory data with length n.
|
| |
| bool | flush () final |
| | In the stream is buffered, invalidates any buffered write data from to stream.
|
| |
| | FilteredOutputStream (OutputStream &&outputStream) |
| | Creates a new filtered data stream.
|
| |
| | FilteredOutputStream (FilteredOutputStream &&) noexcept=default |
| |
| | ~FilteredOutputStream () override=default |
| |
| OutputStream & | getOutputStream () noexcept |
| | The data stream being filtered.
|
| |
| const OutputStream & | getOutputStream () const noexcept |
| | The data stream being filtered.
|
| |
| bool | isSeekable (const Seek mode=Seek::Start) const noexcept override |
| | Checks if the stream is seekable.
|
| |
| void | seek (const std::streamsize position, const Seek mode=Seek::Start) override |
| | Changes the position of the data stream.
|
| |
| bool | isTellable () const noexcept override |
| | Checks if the stream knows it's current absolute position.
|
| |
| size_t | tell () override |
| | Gets the absolute stream position, in bytes.
|
| |
| bool | isSizeKnown () const noexcept override |
| | Checks if the stream knows the size of the data.
|
| |
| size_t | size () override |
| | Gets the number of bytes available on the stream.
|
| |
| bool | isWritable () const noexcept override |
| | Checks if the stream is writable.
|
| |
| 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.
|
| |
| bool | flush () override |
| | In the stream is buffered, invalidates any buffered write data from to stream.
|
| |
| 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.
|
| |
| template<typename T > |
| size_t | write (const MemoryView< const T > &memoryView) |
| | Writes data from a memory view to the stream.
|
| |
| template<typename T > |
| size_t | write (const StridedMemoryView< const T > &memoryView) |
| | Writes data from a strided memory view to the stream.
|
| |
template<typename T >
requires std::is_trivially_copyable_v<T> |
| bool | write (T value) |
| | Writes a trivially copyable object to the stream.
|
| |
| template<typename T > |
| size_t | write (const MemoryView< const T > &memoryView) |
| | Writes data from a memory view to the stream.
|
| |
| template<typename T > |
| size_t | write (const StridedMemoryView< const T > &memoryView) |
| | Writes data from a strided memory view to the stream.
|
| |
| size_t | writeString (const StringView string) |
| | Writes a string to the data stream.
|
| |
template<typename T >
requires std::is_trivially_copyable_v<T> |
| bool | write (T value) |
| | Writes a trivially copyable object to the stream.
|
| |
| | IStream ()=default |
| |
| | IStream (const IStream &) noexcept=delete |
| |
| IStream & | operator= (const IStream &) noexcept=delete |
| |
| | IStream (IStream &&) noexcept=default |
| |
| IStream & | operator= (IStream &&) noexcept=default |
| |
| virtual | ~IStream () noexcept=default |
| |
| void | skip (const size_t n) |
| | Skips n bytes from the data stream.
|
| |
A filtered OutputStream that caches read and write operations to it's underlying OutputStream.