static std::unique_ptr<Codec> createCodec(int level, CodecType type);
static std::unique_ptr<StreamCodec> createStream(int level, CodecType type);
explicit ZlibStreamCodec(int level, CodecType type);
- ~ZlibStreamCodec();
+ ~ZlibStreamCodec() override;
std::vector<std::string> validPrefixes() const override;
bool canUncompress(const IOBuf* data, Optional<uint64_t> uncompressedLength)
class StreamCodec : public Codec {
public:
- virtual ~StreamCodec() {}
+ ~StreamCodec() override {}
/**
* Does the codec need the data length before compression streaming?
private:
// default: Implemented using the streaming API.
std::unique_ptr<IOBuf> doCompress(const folly::IOBuf* data) override;
- virtual std::unique_ptr<IOBuf> doUncompress(
+ std::unique_ptr<IOBuf> doUncompress(
const folly::IOBuf* data,
folly::Optional<uint64_t> uncompressedLength) override;