Inkscape
Vector Graphics Editor
|
This class is for sending a stream to a character buffer. More...
#include <bufferstream.h>
Public Member Functions | |
BufferOutputStream () | |
~BufferOutputStream () override | |
void | close () override |
Closes this output stream and releases any system resources associated with this stream. | |
void | flush () override |
Flushes this output stream and forces any buffered output bytes to be written out. | |
int | put (char ch) override |
Writes the specified byte to this output stream. | |
virtual std::vector< unsigned char > & | getBuffer () |
virtual void | clear () |
![]() | |
OutputStream ()=default | |
Constructor. | |
virtual | ~OutputStream ()=default |
Destructor. | |
Private Attributes | |
std::vector< unsigned char > | buffer |
bool | closed |
This class is for sending a stream to a character buffer.
Definition at line 69 of file bufferstream.h.
Inkscape::IO::BufferOutputStream::BufferOutputStream | ( | ) |
Definition at line 96 of file bufferstream.cpp.
References closed.
|
overridedefault |
|
inlinevirtual |
Definition at line 82 of file bufferstream.h.
References buffer.
|
overridevirtual |
Closes this output stream and releases any system resources associated with this stream.
Implements Inkscape::IO::OutputStream.
Definition at line 111 of file bufferstream.cpp.
References closed.
|
overridevirtual |
Flushes this output stream and forces any buffered output bytes to be written out.
Implements Inkscape::IO::OutputStream.
Definition at line 120 of file bufferstream.cpp.
|
inlinevirtual |
Definition at line 79 of file bufferstream.h.
References buffer.
Referenced by Inkscape::Extension::Internal::OdfOutput::writeContent(), Inkscape::Extension::Internal::OdfOutput::writeManifest(), and Inkscape::Extension::Internal::OdfOutput::writeMeta().
|
overridevirtual |
Writes the specified byte to this output stream.
Implements Inkscape::IO::OutputStream.
Definition at line 128 of file bufferstream.cpp.
|
private |
Definition at line 86 of file bufferstream.h.
Referenced by clear(), getBuffer(), and put().
|
private |
Definition at line 87 of file bufferstream.h.
Referenced by BufferOutputStream(), close(), and put().