E-MailRelay
|
An output streambuf that writes to a fixed-size char buffer. More...
#include <gomembuf.h>
Public Member Functions | |
omembuf (char *p, std::size_t n) | |
Constructor. More... | |
omembuf (const omembuf &)=delete | |
omembuf (omembuf &&)=delete | |
void | operator= (const omembuf &)=delete |
void | operator= (omembuf &&)=delete |
An output streambuf that writes to a fixed-size char buffer.
Does not support seeking.
Eg:
An alternative approach is to use std::ostringstream with pubsetbuf() but there is no guarantee that the std::stringbuf implementation has a useful override of setbuf() (ie. msvc).
Definition at line 49 of file gomembuf.h.
|
inline |
Constructor.
Definition at line 81 of file gomembuf.h.