|
E-MailRelay
|
An input streambuf that takes its data from a fixed-size const buffer. More...
#include <gimembuf.h>
Inheritance diagram for G::basic_imembuf< Tchar >:
Collaboration diagram for G::basic_imembuf< Tchar >:Public Member Functions | |
| basic_imembuf (const Tchar *p, std::size_t n) | |
| Constructor. More... | |
| basic_imembuf (const basic_imembuf< Tchar > &)=delete | |
| basic_imembuf (basic_imembuf< Tchar > &&)=delete | |
| basic_imembuf< Tchar > & | operator= (const basic_imembuf< Tchar > &)=delete |
| basic_imembuf< Tchar > & | operator= (basic_imembuf< Tchar > &&)=delete |
Protected Member Functions | |
| std::streamsize | xsgetn (Tchar *s, std::streamsize n) override |
| std::streampos | seekpos (std::streampos pos, std::ios_base::openmode which) override |
| std::streampos | seekoff (std::streamoff off, std::ios_base::seekdir way, std::ios_base::openmode which) override |
An input streambuf that takes its data from a fixed-size const buffer.
Eg:
An alternative approach is to use std::istringstream 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 gimembuf.h.
| G::basic_imembuf< Tchar >::basic_imembuf | ( | const Tchar * | p, |
| std::size_t | n | ||
| ) |
Constructor.
Definition at line 84 of file gimembuf.h.
|
overrideprotected |
Definition at line 126 of file gimembuf.h.
|
overrideprotected |
Definition at line 108 of file gimembuf.h.
|
overrideprotected |
Definition at line 94 of file gimembuf.h.