MADARA  3.4.1
LZ4BufferFilter.h
Go to the documentation of this file.
1 
2 #ifndef _MADARA_FILTERS_LZ4_BUFFER_FILTER_H_
3 #define _MADARA_FILTERS_LZ4_BUFFER_FILTER_H_
4 
12 #ifdef _USE_LZ4_
13 
14 #include <string>
15 
16 #include "madara/MadaraExport.h"
17 #include "../BufferFilter.h"
18 
19 namespace madara
20 {
21 namespace filters
22 {
27 class MADARA_EXPORT LZ4BufferFilter : public BufferFilter
28 {
29 public:
33  virtual ~LZ4BufferFilter() = default;
34 
42  virtual int encode(char* source, int size, int max_size) const;
43 
51  virtual int decode(char* source, int size, int max_size) const;
52 
57  virtual std::string get_id(void);
58 
63  virtual uint32_t get_version(void);
64 
66  int buffer_size = 10000000;
67 };
68 }
69 }
70 
71 #endif // _USE_LZ4_
72 
73 #endif // _MADARA_FILTERS_LZ4_BUFFER_FILTER_H_
Abstract base class for implementing buffer filters via a functor interface.
Definition: BufferFilter.h:27
virtual ~LZ4BufferFilter()=default
Destructor.
constexpr string_t string
std::string get_version(void)
Gets the MADARA version number.
Definition: Utility.cpp:23
Copyright(c) 2020 Galois.