MADARA
3.1.8
|
Abstract base class for implementing buffer filters via a functor interface. More...
#include <BufferFilter.h>
Public Member Functions | |
virtual | ~BufferFilter () |
Destructor. More... | |
virtual int | decode (unsigned char *source, int size, int max_size) const =0 |
Decodes the buffer in place. More... | |
virtual int | encode (unsigned char *source, int size, int max_size) const =0 |
Encodes the buffer in place. More... | |
Abstract base class for implementing buffer filters via a functor interface.
When subclassing this class, create a new instance with the new operator, and the pointer will be managed by the underlying MADARA infrastructure.
Definition at line 26 of file BufferFilter.h.
|
inlinevirtual |
Destructor.
Definition at line 32 of file BufferFilter.h.
|
pure virtual |
Decodes the buffer in place.
source | the source and destination buffer |
size | the amount of data in the buffer in bytes |
max_size | the amount of bytes the buffer can hold |
|
pure virtual |
Encodes the buffer in place.
source | the source and destination buffer |
size | the amount of data in the buffer in bytes |
max_size | the amount of bytes the buffer can hold |