20 #ifndef OST_IO_CONVERTING_STREAMS_H
21 #define OST_IO_CONVERTING_STREAMS_H
30 namespace ost {
namespace io {
33 template<
int CONVERSIONTYPE>
38 std::basic_ostream<char>(ostr.rdbuf())
44 std::basic_ostream<char>::write(&value,1);
90 std::basic_ostream<char>::write(value,n);
139 for(std::streamsize i=0;i<n;++i){
141 std::basic_ostream<char>::write(reinterpret_cast<char*>(&tmp),
sizeof(T));
148 template<
int CONVERSIONTYPE>
153 std::basic_istream<char>(istr.rdbuf())
200 std::basic_istream<char>::read(value,n);
248 std::basic_istream<char>::read(reinterpret_cast<char*>(value),n*
sizeof(T));
249 for(std::streamsize i=0;i<n;++i){
BinaryOStream & write(const int16_t *value, std::streamsize n)
BinaryOStream & operator<<(const uint8_t &value)
BinaryIStream & read(int16_t *value, std::streamsize n)
BinaryIStream & operator>>(int32_t &value)
BinaryOStream(std::basic_ostream< char > &ostr)
BinaryIStream & operator>>(int64_t &value)
BinaryIStream & operator>>(int16_t &value)
static VALUETYPE To(const VALUETYPE &value)
BinaryIStream & operator>>(double &value)
BinaryOStream & write(const uint32_t *value, std::streamsize n)
BinaryOStream & operator<<(const uint16_t &value)
unsigned __int64 uint64_t
BinaryOStream & operator<<(const char &value)
BinaryOStream & operator<<(const float &value)
BinaryOStream & write(const uint16_t *value, std::streamsize n)
BinaryIStream & operator>>(uint8_t &value)
BinaryIStream & read_helper(T *value, std::streamsize n)
BinaryOStream & write(const uint8_t *value, std::streamsize n)
BinaryIStream & read(int32_t *value, std::streamsize n)
BinaryOStream & write(const char *value, std::streamsize n)
BinaryOStream & operator<<(const int16_t &value)
BinaryIStream & read(double *value, std::streamsize n)
BinaryIStream & read(int8_t *value, std::streamsize n)
BinaryIStream & operator>>(uint16_t &value)
BinaryIStream & operator>>(uint64_t &value)
BinaryOStream & operator<<(const int64_t &value)
BinaryIStream & operator>>(float &value)
BinaryIStream & operator>>(uint32_t &value)
BinaryIStream(std::basic_istream< char > &istr)
static void FromIP(VALUETYPE *value)
BinaryOStream & write(const int64_t *value, std::streamsize n)
BinaryIStream & operator>>(int8_t &value)
BinaryOStream & write(const uint64_t *value, std::streamsize n)
BinaryOStream & write(const int32_t *value, std::streamsize n)
BinaryIStream & read(uint16_t *value, std::streamsize n)
BinaryOStream & write(const int8_t *value, std::streamsize n)
BinaryIStream & read(float *value, std::streamsize n)
BinaryOStream & operator<<(const int32_t &value)
BinaryOStream & write(const float *value, std::streamsize n)
BinaryOStream & write(const double *value, std::streamsize n)
BinaryOStream & operator<<(const double &value)
BinaryIStream & read(char *value, std::streamsize n)
BinaryOStream & write_helper(const T *value, std::streamsize n)
BinaryOStream & operator<<(const uint64_t &value)
BinaryIStream & read(uint8_t *value, std::streamsize n)
BinaryIStream & read(uint64_t *value, std::streamsize n)
BinaryOStream & operator<<(const uint32_t &value)
BinaryIStream & read(int64_t *value, std::streamsize n)
BinaryOStream & operator<<(const int8_t &value)
BinaryIStream & read(uint32_t *value, std::streamsize n)