proxygen
Compression.h File Reference
#include <cstdint>
#include <limits>
#include <memory>
#include <string>
#include <vector>
#include <folly/Optional.h>
#include <folly/Range.h>
#include <folly/compression/Counters.h>
#include <folly/io/IOBuf.h>

Go to the source code of this file.

Classes

class  folly::io::Codec
 
class  folly::io::StreamCodec
 

Namespaces

 folly
 —— Concurrent Priority Queue Implementation ——
 
 folly::io
 

Enumerations

enum  folly::io::CodecType {
  folly::io::CodecType::USER_DEFINED = 0, folly::io::CodecType::NO_COMPRESSION = 1, folly::io::CodecType::LZ4 = 2, folly::io::CodecType::SNAPPY = 3,
  folly::io::CodecType::ZLIB = 4, folly::io::CodecType::LZ4_VARINT_SIZE = 5, folly::io::CodecType::LZMA2 = 6, folly::io::CodecType::LZMA2_VARINT_SIZE = 7,
  folly::io::CodecType::ZSTD = 8, folly::io::CodecType::GZIP = 9, folly::io::CodecType::LZ4_FRAME = 10, folly::io::CodecType::BZIP2 = 11,
  folly::io::CodecType::ZSTD_FAST = 12, folly::io::CodecType::NUM_CODEC_TYPES = 13
}
 

Functions

std::unique_ptr< Codec > folly::io::getCodec (CodecType type, int level)
 
std::unique_ptr< StreamCodec > folly::io::getStreamCodec (CodecType type, int level)
 
std::unique_ptr< Codec > folly::io::getAutoUncompressionCodec (std::vector< std::unique_ptr< Codec >> customCodecs, std::unique_ptr< Codec > terminalCodec)
 
bool folly::io::hasCodec (CodecType type)
 
bool folly::io::hasStreamCodec (CodecType type)
 

Variables

constexpr int folly::io::COMPRESSION_LEVEL_FASTEST = -1
 
constexpr int folly::io::COMPRESSION_LEVEL_DEFAULT = -2
 
constexpr int folly::io::COMPRESSION_LEVEL_BEST = -3