]>
git.proxmox.com Git - ceph.git/blob - ceph/src/compressor/brotli/BrotliCompressor.h
2 * Ceph - scalable distributed file system
4 * Copyright (C) 2017 BI SHUN KE <aionshun@livemail.tw>
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.
13 #ifndef CEPH_BROTLICOMPRESSOR_H
14 #define CEPH_BROTLICOMPRESSOR_H
17 #include "include/buffer.h"
18 #include "compressor/Compressor.h"
20 class BrotliCompressor
: public Compressor
23 BrotliCompressor() : Compressor(COMP_ALG_BROTLI
, "brotli") {}
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
;
30 #endif //CEPH_BROTLICOMPRESSOR_H