summaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/util/lz4compressor.h
blob: 558088a914c173d3f3ff7d1ae9f9d2e5deb4c9ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include "compressor.h"

namespace vespalib::compression {

class LZ4Compressor : public ICompressor
{
public:
    bool process(const CompressionConfig& config, const void * input, size_t inputLen, void * output, size_t & outputLen) override;
    bool unprocess(const void * input, size_t inputLen, void * output, size_t & outputLen) override;
    size_t adjustProcessLen(uint16_t options, size_t len)   const override;
};

}