aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/util/lz4compressor.h
blob: 947888e625feb0f5faa27042ef1a7e6c9aa2a181 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright Yahoo. 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(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;
};

}