Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
net_instaweb::BrotliInflater Class Reference

#include "brotli_inflater.h"

Public Member Functions

bool DecompressHelper (StringPiece in, MessageHandler *handler, Writer *writer)
 

Static Public Member Functions

static bool Compress (StringPiece in, MessageHandler *handler, Writer *writer)
 
static bool Compress (StringPiece in, int compression_level, MessageHandler *handler, Writer *writer)
 
static bool Decompress (StringPiece in, MessageHandler *handler, Writer *writer)
 

Detailed Description

Todo:
TODO(jcrowell): Add compression interface that can handle multiple compressors (gzip/deflate, brotli, etc.).

Member Function Documentation

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: