3 #ifndef _MADARA_FILTERS_BUFFER_FILTER_H_
4 #define _MADARA_FILTERS_BUFFER_FILTER_H_
41 virtual int encode(
char* source,
int size,
int max_size)
const = 0;
50 virtual int decode(
char* source,
int size,
int max_size)
const = 0;
Abstract base class for implementing buffer filters via a functor interface.
virtual uint32_t get_version(void)=0
Gets the version of the filter.
virtual std::string get_id(void)=0
Gets the id of the filter.
virtual int encode(char *source, int size, int max_size) const =0
Encodes the buffer in place.
virtual int decode(char *source, int size, int max_size) const =0
Decodes the buffer in place.
virtual ~BufferFilter()
Destructor.
std::list< BufferFilter * > BufferFilters
Copyright(c) 2020 Galois.