MADARA
3.2.3
|
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 (unsigned char *source, int size, int max_size) const |
Decodes the buffer in place using AES encryption. More... | |
virtual int | encode (unsigned char *source, int size, int max_size) const |
Encodes the buffer in place using AES encryption. 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 12 of file JavaBufferFilter.cpp.
|
virtual |
Destructor.
Definition at line 62 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 134 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 77 of file JavaBufferFilter.cpp.
|
private |
the class of the Java object obj_
Definition at line 69 of file JavaBufferFilter.h.
|
private |
a logger
Definition at line 72 of file JavaBufferFilter.h.
|
private |
Definition at line 66 of file JavaBufferFilter.h.