|
E-MailRelay
|
An output streambuf that writes to a fixed-size char buffer. More...
#include <gomembuf.h>
Inheritance diagram for G::basic_omembuf< Tchar >:
Collaboration diagram for G::basic_omembuf< Tchar >:Public Types | |
| using | base_type = std::basic_streambuf< Tchar, std::char_traits< Tchar > > |
Public Member Functions | |
| basic_omembuf (Tchar *p, std::size_t n) | |
| Constructor. More... | |
| basic_omembuf (const basic_omembuf< Tchar > &)=delete | |
| basic_omembuf (basic_omembuf< Tchar > &&)=delete | |
| basic_omembuf< Tchar > & | operator= (const basic_omembuf< Tchar > &)=delete |
| basic_omembuf< Tchar > & | operator= (basic_omembuf< Tchar > &&)=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 51 of file gomembuf.h.
| using G::basic_omembuf< Tchar >::base_type = std::basic_streambuf<Tchar,std::char_traits<Tchar> > |
Definition at line 54 of file gomembuf.h.
| G::basic_omembuf< Tchar >::basic_omembuf | ( | Tchar * | p, |
| std::size_t | n | ||
| ) |
Constructor.
Definition at line 85 of file gomembuf.h.