OpenVPN 3 Core Library
|
#include <lzoasym.hpp>
Public Types | |
enum | { LZO_COMPRESS = 0x66 , LZO_COMPRESS_SWAP = 0x67 } |
![]() | |
typedef RCPtr< Compress > | Ptr |
![]() | |
typedef RCPtr< RC > | Ptr |
Public Member Functions | |
OPENVPN_SIMPLE_EXCEPTION (lzo_init_failed) | |
CompressLZOAsym (const Frame::Ptr &frame, const SessionStats::Ptr &stats, const bool support_swap_arg, const bool asym_arg) | |
const char * | name () const override |
void | decompress_work (BufferAllocated &buf) |
void | compress (BufferAllocated &buf, const bool hint) override |
void | decompress (BufferAllocated &buf) override |
![]() | |
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 Public Member Functions | |
static void | init_static () |
![]() | |
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 | |
Private Attributes | |
const bool | support_swap |
BufferAllocated | work |
Additional Inherited Members | |
![]() | |
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 } |
![]() | |
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) |
![]() | |
Frame::Ptr | frame |
SessionStats::Ptr | stats |
![]() | |
static logging::Logger< DEFAULT_LOG_LEVEL, MAX_LEVEL > | log_ |
Definition at line 23 of file lzoasym.hpp.
anonymous enum |
Enumerator | |
---|---|
LZO_COMPRESS | |
LZO_COMPRESS_SWAP |
Definition at line 27 of file lzoasym.hpp.
|
inline |
Definition at line 35 of file lzoasym.hpp.
|
inlineoverridevirtual |
Implements openvpn::Compress.
Definition at line 71 of file lzoasym.hpp.
|
inlineoverridevirtual |
Implements openvpn::Compress.
Definition at line 84 of file lzoasym.hpp.
|
inline |
|
inlinestatic |
|
inlineoverridevirtual |
Implements openvpn::Compress.
Definition at line 49 of file lzoasym.hpp.
openvpn::CompressLZOAsym::OPENVPN_SIMPLE_EXCEPTION | ( | lzo_init_failed | ) |
|
private |
Definition at line 110 of file lzoasym.hpp.
|
private |
Definition at line 111 of file lzoasym.hpp.