MADARA
3.4.1
|
Filters a buffer in Java. More...
#include <JavaBufferFilter.h>
Public Member Functions | |
JavaBufferFilter (logger::Logger &logger, jobject obj) | |
Constructor. More... | |
virtual | ~JavaBufferFilter () |
Destructor. More... | |
virtual int | decode (char *source, int size, int max_size) const |
Decodes the buffer in place using AES encryption. More... | |
virtual int | encode (char *source, int size, int max_size) const |
Encodes the buffer in place using AES encryption. More... | |
virtual std::string | get_id (void) |
Gets the id of the filter. More... | |
virtual uint32_t | get_version (void) |
Gets the version of the filter. More... | |
Private Attributes | |
jclass | class_ |
the class of the Java object obj_ More... | |
logger::Logger * | logger_ |
a logger More... | |
jobject | obj_ |
Filters a buffer in Java.
Definition at line 32 of file JavaBufferFilter.h.
madara::filters::JavaBufferFilter::JavaBufferFilter | ( | logger::Logger & | logger, |
jobject | obj | ||
) |
Constructor.
Definition at line 11 of file JavaBufferFilter.cpp.
|
virtual |
Destructor.
Definition at line 60 of file JavaBufferFilter.cpp.
|
virtual |
Decodes the buffer in place using AES encryption.
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 |
Implements madara::filters::BufferFilter.
Definition at line 130 of file JavaBufferFilter.cpp.
|
virtual |
Encodes the buffer in place using AES encryption.
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 |
Implements madara::filters::BufferFilter.
Definition at line 74 of file JavaBufferFilter.cpp.
|
virtual |
Gets the id of the filter.
This is used in the serialization process for transports and checkpoints to identify which filter is used.
Implements madara::filters::BufferFilter.
Definition at line 186 of file JavaBufferFilter.cpp.
|
virtual |
Gets the version of the filter.
Implements madara::filters::BufferFilter.
Definition at line 191 of file JavaBufferFilter.cpp.
|
private |
the class of the Java object obj_
Definition at line 80 of file JavaBufferFilter.h.
|
private |
a logger
Definition at line 83 of file JavaBufferFilter.h.
|
private |
Definition at line 77 of file JavaBufferFilter.h.