11template <
class _CharT,
class _Traits>
15 struct C_IMemBuf: std::basic_streambuf<_CharT,_Traits>
19 const auto beg =
const_cast<_CharT*
>(buffer);
20 this->setg(beg, beg, beg+size);
22 C_IMemBuf(std::basic_string_view<_CharT,_Traits> buffer)
24 const auto beg =
const_cast<_CharT*
>(buffer.data());
25 this->setg(beg, beg, beg+buffer.size());
35template <
class _CharT,
class _Traits = std::
char_traits<_CharT>>
38 public std::basic_istream<_CharT,_Traits>
45 std::basic_istream<_CharT,_Traits>(&this->
m_Buffer)
49 std::basic_istream<_CharT,_Traits>(&this->
m_Buffer)
C_IMemStreamT(const _CharT *str)
C_IMemStreamT(std::basic_string_view< _CharT, _Traits > buffer)
C_IMemStreamT(const _CharT *buffer, size_t size)
C_IMemStreamT(std::basic_string< _CharT, _Traits > &&)=delete
THE common namespace of bux library.
C_IMemBuf(std::basic_string_view< _CharT, _Traits > buffer)
C_IMemBuf(const _CharT *buffer, size_t size)
C_IMemBufAsMember(std::basic_string_view< _CharT, _Traits > buffer)
bux::C_IMemBufAsMember::C_IMemBuf m_Buffer
C_IMemBufAsMember(const _CharT *buffer, size_t size)
C_IMemBufAsMember(std::basic_string< _CharT, _Traits > &&)=delete