22 virtual size_t readsome(
char* buf,
size_t len ) = 0;
23 virtual size_t readsome(
const std::shared_ptr<char>& buf,
size_t len,
size_t offset ) = 0;
31 istream&
read(
const std::shared_ptr<char>& buf,
size_t len,
size_t offset = 0 );
45 virtual size_t writesome(
const char* buf,
size_t len ) = 0;
46 virtual size_t writesome(
const std::shared_ptr<const char>& buf,
size_t len,
size_t offset ) = 0;
47 virtual void close() = 0;
48 virtual void flush() = 0;
56 ostream&
write(
const std::shared_ptr<const char>& buf,
size_t len,
size_t offset = 0 );
68 return o.
write( array, N );
72 ostream&
operator<<( ostream& o,
const char* v );
73 ostream&
operator<<( ostream& o,
const std::string& v );
74 ostream&
operator<<( ostream& o,
const std::string& v );
75 ostream&
operator<<( ostream& o,
const double& v );
76 ostream&
operator<<( ostream& o,
const float& v );
77 ostream&
operator<<( ostream& o,
const int64_t& v );
78 ostream&
operator<<( ostream& o,
const uint64_t& v );
79 ostream&
operator<<( ostream& o,
const int32_t& v );
80 ostream&
operator<<( ostream& o,
const uint32_t& v );
81 ostream&
operator<<( ostream& o,
const int16_t& v );
82 ostream&
operator<<( ostream& o,
const uint16_t& v );
83 ostream&
operator<<( ostream& o,
const int8_t& v );
84 ostream&
operator<<( ostream& o,
const uint8_t& v );
86 ostream&
operator<<( ostream& o,
const size_t& v );
89 istream&
operator>>( istream& o, std::string& v );
90 istream&
operator>>( istream& o, std::string& v );
95 istream&
operator>>( istream& o, uint64_t& v );
97 istream&
operator>>( istream& o, uint32_t& v );
99 istream&
operator>>( istream& o, uint16_t& v );
101 istream&
operator>>( istream& o, uint8_t& v );