#include "brotli_inflater.h"
- Todo:
- TODO(jcrowell): Add compression interface that can handle multiple compressors (gzip/deflate, brotli, etc.).
static bool net_instaweb::BrotliInflater::Compress |
( |
StringPiece |
in, |
|
|
MessageHandler * |
handler, |
|
|
Writer * |
writer |
|
) |
| |
|
static |
Compresses a StringPiece, writing output to Writer. Returns false if there was some kind of failure, though none are expected. If no compression level is specified, the default of 11 (maximum compression/highest quality) is used.
- Todo:
- TODO(jcrowell): add api that takes in &out_string as an argument, to remove string copy.
static bool net_instaweb::BrotliInflater::Decompress |
( |
StringPiece |
in, |
|
|
MessageHandler * |
handler, |
|
|
Writer * |
writer |
|
) |
| |
|
static |
Decompresses a StringPiece, writing output to Writer. Returns false if there was some kind of failure, such as a corrupt input.
The documentation for this class was generated from the following file: