E-MailRelay
|
An input streambuf that takes its data from a fixed-size const buffer. More...
#include <gimembuf.h>
Public Member Functions | |
basic_imembuf (const Tchar *p, std::size_t n) | |
Constructor. More... | |
basic_imembuf (basic_string_view< Tchar >) | |
Constructor. More... | |
basic_imembuf (const basic_imembuf< Tchar > &)=delete | |
basic_imembuf (basic_imembuf< Tchar > &&)=delete | |
void | operator= (const basic_imembuf< Tchar > &)=delete |
void | 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 52 of file gimembuf.h.
G::basic_imembuf< Tchar >::basic_imembuf | ( | const Tchar * | p, |
std::size_t | n | ||
) |
Constructor.
Definition at line 98 of file gimembuf.h.
|
explicit |
Constructor.
Definition at line 88 of file gimembuf.h.
|
overrideprotected |
Definition at line 140 of file gimembuf.h.
|
overrideprotected |
Definition at line 122 of file gimembuf.h.
|
overrideprotected |
Definition at line 108 of file gimembuf.h.