MPD
0.20.18
|
A filter that compresses data written to it using zlib, forwarding compressed data in the "gzip" format. More...
#include <GzipOutputStream.hxx>
Public Member Functions | |
GzipOutputStream (OutputStream &_next) | |
Construct the filter. More... | |
~GzipOutputStream () | |
void | Flush () |
Finish the file and write all data remaining in zlib's output buffer. More... | |
void | Write (const void *data, size_t size) override |
Throws std::exception on error. More... | |
![]() | |
OutputStream ()=default | |
OutputStream (const OutputStream &)=delete | |
A filter that compresses data written to it using zlib, forwarding compressed data in the "gzip" format.
Don't forget to call Flush() before destructing this object.
Definition at line 35 of file GzipOutputStream.hxx.
|
explicit |
Construct the filter.
GzipOutputStream::~GzipOutputStream | ( | ) |
void GzipOutputStream::Flush | ( | ) |
Finish the file and write all data remaining in zlib's output buffer.
|
overridevirtual |
Throws std::exception on error.
Implements OutputStream.