Sink implementation that writes into fixed-size memory area. More...
#include <staticlib/io/memory_sink.hpp>
Public Member Functions | |
| memory_sink (span< char > dest) | |
| Constructor. | |
| memory_sink (const memory_sink &other) | |
| Copy constructor. | |
| memory_sink & | operator= (const memory_sink &other) |
| Copy assignment operator. | |
| memory_sink (memory_sink &&other) STATICLIB_NOEXCEPT | |
| Move constructor. | |
| memory_sink & | operator= (memory_sink &&other) STATICLIB_NOEXCEPT |
| Move assignment operator. | |
| std::streamsize | write (span< const char > span) |
| Write implementation. | |
| std::streamsize | flush () |
| No-op flush implementation. | |
Sink implementation that writes into fixed-size memory area.
Exception is thrown on overwrite.
|
inline |
Constructor.
|
inline |
Copy constructor.
| other | instance |
|
inline |
Move constructor.
| other | other instance |
|
inline |
No-op flush implementation.
|
inline |
Copy assignment operator.
| other | instance |
|
inline |
Move assignment operator.
| other | other instance |
|
inline |
Write implementation.
| span | buffer span |
1.8.1.2