3 #ifndef _MADARA_FILTERS_BUFFER_FILTER_H_ 4 #define _MADARA_FILTERS_BUFFER_FILTER_H_ 43 virtual int encode (
unsigned char * source,
int size,
int max_size)
const = 0;
52 virtual int decode (
unsigned char * source,
int size,
int max_size)
const = 0;
60 #endif // _MADARA_FILTERS_AGGREGATE_FILTER_H_ virtual int decode(unsigned char *source, int size, int max_size) const =0
Decodes the buffer in place.
std::list< BufferFilter * > BufferFilters
virtual ~BufferFilter()
Destructor.
Copyright (c) 2015 Carnegie Mellon University.
Abstract base class for implementing buffer filters via a functor interface.
virtual int encode(unsigned char *source, int size, int max_size) const =0
Encodes the buffer in place.