55 static std::ostream&
copy(std::ostream &output, std::istream &input,
const std::streamsize
size,
const size_t buffer_size = 0x1000);
63 virtual void clear() = 0;
65 virtual void open() = 0;
66 virtual void close() = 0;
68 std::streamsize
size()
const;
78 std::iostream &_stream;
129 std::streamsize
size()
const;
194 BLOB(
const std::streamsize intitial_size = 0);
201 std::streamsize _const_size;
214 virtual void clear();
217 virtual void close();
228 std::fstream _filestream;
244 class StringBLOB :
public BLOB
248 virtual ~StringBLOB();
250 virtual void clear();
253 virtual void close();
256 std::iostream &__get_stream()
258 return _stringstream;
261 std::streamsize __get_size();
265 std::stringstream _stringstream;
284 class TmpFileBLOB :
public BLOB
287 TmpFileBLOB(
const File &path);
288 virtual ~TmpFileBLOB();
290 virtual void clear();
293 virtual void close();
296 std::iostream &__get_stream()
301 std::streamsize __get_size();
304 std::fstream _filestream;