framework
|
Output frame wrapper. More...
#include <frame.hpp>
Public Types | |
using | pos_type = std::size_t |
Iterator position type. | |
using | off_type = typename std::make_signed< pos_type >::type |
Iterator offset type. | |
Public Member Functions | |
raw_output_frame (char *begin, char *end) | |
Frame constructor. More... | |
bool | write (char const *s, std::streamsize n) |
Write bytes. | |
template<std::size_t N> | |
bool | write (char const *s) |
Write bytes. | |
bool | seekp (pos_type pos) |
Seek to position. More... | |
std::size_t | tellp () const |
Output iterator position. | |
Output frame wrapper.
Provides a trivial output stream wrapper around a raw character buffer.
Safe | check buffer boundaries when writing to the stream |
|
inline |
Frame constructor.
|
inline |
Seek to position.
Sets the output iterator to the provided position. Note that the definition used here may not be compatible with that of basic_ostream::seekg.
pos | new output iterator position |