/*
16 * Copyright (C) 2018 Authors
17 * Released under GNU LGPL v2.1+, read the file
'COPYING' for more information.
19#ifndef SEEN_BUFFERSTREAM_H
20#define SEEN_BUFFERSTREAM_H
48 void close()
override;
52 const std::vector<unsigned char> &
buffer;
76 void close()
override;
77 void flush()
override;
78 int put(
char ch)
override;
This class is for sending a stream to a character buffer.
void flush() override
Flushes this output stream and forces any buffered output bytes to be written out.
void close() override
Closes this output stream and releases any system resources associated with this stream.
int put(char ch) override
Writes the specified byte to this output stream.
virtual std::vector< unsigned char > & getBuffer()
~BufferOutputStream() override
std::vector< unsigned char > buffer
This interface is the base of all input stream classes.
Helper class to stream background task notifications as a series of messages.