OpenVPN 3 Core Library
|
#include <lz4.hpp>
Protected Member Functions | |
CompressLZ4Base (const Frame::Ptr &frame, const SessionStats::Ptr &stats) | |
bool | do_decompress (BufferAllocated &buf) |
bool | do_compress (BufferAllocated &buf) |
size_t | lz4_extra_buffer (const size_t len) |
![]() | |
Compress (const Frame::Ptr &frame_arg, const SessionStats::Ptr &stats_arg) | |
void | error (BufferAllocated &buf) |
void | do_swap (Buffer &buf, unsigned char op) |
void | do_unswap (Buffer &buf) |
void | v2_push (Buffer &buf, unsigned char value) |
int | v2_pull (Buffer &buf) |
Protected Attributes | |
BufferAllocated | work |
![]() | |
Frame::Ptr | frame |
SessionStats::Ptr | stats |
Additional Inherited Members | |
![]() | |
typedef RCPtr< Compress > | Ptr |
![]() | |
typedef RCPtr< RC > | Ptr |
![]() | |
virtual const char * | name () const =0 |
virtual void | compress (BufferAllocated &buf, const bool hint)=0 |
virtual void | decompress (BufferAllocated &buf)=0 |
![]() | |
RC () noexcept=default | |
RC (const RC &)=delete | |
virtual | ~RC ()=default |
RC & | operator= (const RC &)=delete |
olong | use_count () const noexcept |
Delegates call to RCImpl and returns the result. | |
![]() | |
static constexpr bool | is_thread_safe () |
Delegates call to RCImpl and returns the result. | |
![]() | |
static int | log_level () |
return the current logging level for all logging | |
static void | set_log_level (int level) |
set the log level for all loggigng | |
![]() | |
static constexpr int | max_log_level |
static constexpr int | default_log_level |
![]() | |
enum | { NO_COMPRESS = 0xFA , NO_COMPRESS_SWAP = 0xFB } |
enum | { COMPRESS_V2_ESCAPE = 0x50 , OVPN_COMPv2_NONE = 0 , OVPN_COMPv2_LZ4 = 1 } |
![]() | |
static logging::Logger< DEFAULT_LOG_LEVEL, MAX_LEVEL > | log_ |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
protected |