The class wraps zlib into OutputStreamInterface.
More...
#include "util/stream/zlib_output_stream.h"
|
| enum class | Mode : bool |
| | Whether this object is configured to compress or decompress data. More...
|
| |
The class wraps zlib into OutputStreamInterface.
◆ Mode
Whether this object is configured to compress or decompress data.
| Enumerator |
|---|
| kCompress | Data passed through this object is compressed.
|
| kDecompress | Data passed through this object is decompressed.
|
◆ ZlibOutputStream()
| crashpad::ZlibOutputStream::ZlibOutputStream |
( |
Mode | mode, |
|
|
std::unique_ptr< OutputStreamInterface > | output_stream ) |
- Parameters
-
| [in] | mode | The work mode of this object. |
| [in] | output_stream | The output_stream that this object writes to. |
To construct an output pipeline, the output stream needs an output stream to write the result to. For example, the code below constructs a compress->base94-encoding->log output stream pipline.
ZlibOutputStream zlib_output_stream( ZlibOutputStream::Mode::kDeflate, std::make_unique<Base94OutputStream>(
Base94OutputStream::Mode::kEncode,
std::make_unique<LogOutputStream>()));
The documentation for this class was generated from the following files:
- util/stream/zlib_output_stream.h
- util/stream/zlib_output_stream.cc