stdex
Additional custom or not Standard C++ covered algorithms
|
Binary stream reader/writer. More...
#include <stdex/ios.hpp>
Public Member Functions | |
basic_iostreamfmt (std::basic_iostream< _Elem, _Traits > &stream) | |
![]() | |
basic_ostreamfmt (std::basic_ostream< _Elem, _Traits > &stream) | |
pos_type | tellp () |
basic_ostreamfmt< _Elem, _Traits > & | seekp (pos_type pos) |
basic_ostreamfmt< _Elem, _Traits > & | seekp (off_type off, std::ios_base::seekdir dir) |
bool | good () const noexcept |
bool | eof () const noexcept |
bool | fail () const noexcept |
bool | bad () const noexcept |
basic_ostreamfmt< _Elem, _Traits > & | write (_In_reads_bytes_(size) const void *data, std::streamsize size) |
template<class T > | |
basic_ostreamfmt< _Elem, _Traits > & | write (T value) |
basic_ostreamfmt< _Elem, _Traits > & | write (const char *value) |
basic_ostreamfmt< _Elem, _Traits > & | write (const wchar_t *value) |
template<class _Elem2 > | |
void | vprintf (const _Elem2 *format, locale_t locale, va_list arg) |
Formats string using printf() and write it to stream. | |
template<class _Elem2 > | |
void | printf (const _Elem2 *format, locale_t locale,...) |
Formats string using printf() and write it to stream. | |
basic_ostreamfmt< _Elem, _Traits > & | operator<< (int8_t value) |
basic_ostreamfmt< _Elem, _Traits > & | operator<< (int16_t value) |
basic_ostreamfmt< _Elem, _Traits > & | operator<< (int32_t value) |
basic_ostreamfmt< _Elem, _Traits > & | operator<< (int64_t value) |
basic_ostreamfmt< _Elem, _Traits > & | operator<< (uint8_t value) |
basic_ostreamfmt< _Elem, _Traits > & | operator<< (uint16_t value) |
basic_ostreamfmt< _Elem, _Traits > & | operator<< (uint32_t value) |
basic_ostreamfmt< _Elem, _Traits > & | operator<< (uint64_t value) |
basic_ostreamfmt< _Elem, _Traits > & | operator<< (float value) |
basic_ostreamfmt< _Elem, _Traits > & | operator<< (double value) |
basic_ostreamfmt< _Elem, _Traits > & | operator<< (char value) |
basic_ostreamfmt< _Elem, _Traits > & | operator<< (const char *value) |
basic_ostreamfmt< _Elem, _Traits > & | operator<< (const wchar_t *value) |
![]() | |
basic_istreamfmt (std::basic_istream< _Elem, _Traits > &stream) | |
pos_type | tellg () |
basic_istreamfmt< _Elem, _Traits > & | seekg (pos_type pos) |
basic_istreamfmt< _Elem, _Traits > & | seekg (off_type off, std::ios_base::seekdir dir) |
bool | good () const noexcept |
bool | eof () const noexcept |
bool | fail () const noexcept |
bool | bad () const noexcept |
std::streamsize | gcount () const noexcept |
basic_istreamfmt< _Elem, _Traits > & | read (_Out_writes_bytes_(size) void *data, std::streamsize size) |
template<class T > | |
basic_istreamfmt< _Elem, _Traits > & | read (T &value) |
template<class _Traits = std::char_traits<char>, class _Alloc = std::allocator<char>> | |
basic_istreamfmt< _Elem, _Traits > & | read (std::basic_string< char, _Traits, _Alloc > &value) |
template<class _Traits = std::char_traits<wchar_t>, class _Alloc = std::allocator<wchar_t>> | |
basic_istreamfmt< _Elem, _Traits > & | read (std::basic_string< wchar_t, _Traits, _Alloc > &value) |
basic_istreamfmt< _Elem, _Traits > & | operator>> (int8_t &value) |
basic_istreamfmt< _Elem, _Traits > & | operator>> (int16_t &value) |
basic_istreamfmt< _Elem, _Traits > & | operator>> (int32_t &value) |
basic_istreamfmt< _Elem, _Traits > & | operator>> (int64_t &value) |
basic_istreamfmt< _Elem, _Traits > & | operator>> (uint8_t &value) |
basic_istreamfmt< _Elem, _Traits > & | operator>> (uint16_t &value) |
basic_istreamfmt< _Elem, _Traits > & | operator>> (uint32_t &value) |
basic_istreamfmt< _Elem, _Traits > & | operator>> (uint64_t &value) |
basic_istreamfmt< _Elem, _Traits > & | operator>> (float &value) |
basic_istreamfmt< _Elem, _Traits > & | operator>> (double &value) |
basic_istreamfmt< _Elem, _Traits > & | operator>> (char &value) |
template<class _Traits = std::char_traits<char>, class _Alloc = std::allocator<char>> | |
basic_istreamfmt< _Elem, _Traits > & | operator>> (std::basic_string< char, _Traits, _Alloc > &value) |
template<class _Traits = std::char_traits<wchar_t>, class _Alloc = std::allocator<wchar_t>> | |
basic_istreamfmt< _Elem, _Traits > & | operator>> (std::basic_string< wchar_t, _Traits, _Alloc > &value) |
Additional Inherited Members | |
![]() | |
using | pos_type = typename _Traits::pos_type |
using | off_type = typename _Traits::off_type |
![]() | |
using | pos_type = typename _Traits::pos_type |
using | off_type = typename _Traits::off_type |
![]() | |
std::basic_ostream< _Elem, _Traits > & | sp |
![]() | |
std::basic_istream< _Elem, _Traits > & | sg |
Binary stream reader/writer.