]> git.proxmox.com Git - ceph.git/blob - ceph/src/compressor/brotli/BrotliCompressor.h
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / compressor / brotli / BrotliCompressor.h
1 /*
2 * Ceph - scalable distributed file system
3 *
4 * Copyright (C) 2017 BI SHUN KE <aionshun@livemail.tw>
5 *
6 * This is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License version 2.1, as published by the Free Software
9 * Foundation. See file COPYING.
10 *
11 */
12
13 #ifndef CEPH_BROTLICOMPRESSOR_H
14 #define CEPH_BROTLICOMPRESSOR_H
15
16
17 #include "include/buffer.h"
18 #include "compressor/Compressor.h"
19
20 class BrotliCompressor : public Compressor
21 {
22 public:
23 BrotliCompressor() : Compressor(COMP_ALG_BROTLI, "brotli") {}
24
25 int compress(const bufferlist &in, bufferlist &out) override;
26 int decompress(const bufferlist &in, bufferlist &out) override;
27 int decompress(bufferlist::const_iterator &p, size_t compressed_len, bufferlist &out) override;
28 };
29
30 #endif //CEPH_BROTLICOMPRESSOR_H
31