![]() |
Gamedev Framework (gf)
0.10.0
A C++14 framework for 2D games
|
Abstract class for custom file output streams. More...
#include <gf/Stream.h>

Public Member Functions | |
| OutputStream ()=default | |
| Default constructor. More... | |
| OutputStream (const InputStream &)=delete | |
| Deleted copy constructor. More... | |
| OutputStream & | operator= (const InputStream &)=delete |
| Deleted copy assignment. More... | |
| virtual | ~OutputStream () |
| Destructor. More... | |
| virtual std::size_t | write (ArrayRef< uint8_t > buffer)=0 |
| Write data to the stream. More... | |
| std::size_t | write (uint8_t byte) |
| Write a single byte to the stream. More... | |
Abstract class for custom file output streams.
This class allows users to define their own stream output sinks to which Gamedev Framework can save resources.
|
default |
Default constructor.
|
delete |
Deleted copy constructor.
|
virtual |
Destructor.
|
delete |
Deleted copy assignment.
|
pure virtual |
Write data to the stream.
| buffer | The buffer to copy to the stream |
Implemented in gf::CompressedOutputStream, gf::MemoryOutputStream, and gf::FileOutputStream.
|
inline |
Write a single byte to the stream.
| buffer | The byte to copy to the stream |
1.8.13