OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::CompressLZ4Base Class Reference

#include <lz4.hpp>

Inheritance diagram for openvpn::CompressLZ4Base:
[legend]
Collaboration diagram for openvpn::CompressLZ4Base:
[legend]

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)
 
- Protected Member Functions inherited from openvpn::Compress
 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
 
- Protected Attributes inherited from openvpn::Compress
Frame::Ptr frame
 
SessionStats::Ptr stats
 

Additional Inherited Members

- Public Types inherited from openvpn::Compress
typedef RCPtr< CompressPtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 
- Public Member Functions inherited from openvpn::Compress
virtual const char * name () const =0
 
virtual void compress (BufferAllocated &buf, const bool hint)=0
 
virtual void decompress (BufferAllocated &buf)=0
 
- Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
 RC () noexcept=default
 
 RC (const RC &)=delete
 
virtual ~RC ()=default
 
RCoperator= (const RC &)=delete
 
olong use_count () const noexcept
 Delegates call to RCImpl and returns the result.
 
- Static Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
static constexpr bool is_thread_safe ()
 Delegates call to RCImpl and returns the result.
 
- Static Public Member Functions inherited from openvpn::logging::LoggingMixin< OPENVPN_DEBUG_COMPRESS, logging::LOG_LEVEL_TRACE, Compress >
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 Public Attributes inherited from openvpn::logging::LoggingMixin< OPENVPN_DEBUG_COMPRESS, logging::LOG_LEVEL_TRACE, Compress >
static constexpr int max_log_level
 
static constexpr int default_log_level
 
- Protected Types inherited from openvpn::Compress
enum  { NO_COMPRESS = 0xFA , NO_COMPRESS_SWAP = 0xFB }
 
enum  { COMPRESS_V2_ESCAPE = 0x50 , OVPN_COMPv2_NONE = 0 , OVPN_COMPv2_LZ4 = 1 }
 
- Static Protected Attributes inherited from openvpn::logging::LoggingMixin< OPENVPN_DEBUG_COMPRESS, logging::LOG_LEVEL_TRACE, Compress >
static logging::Logger< DEFAULT_LOG_LEVEL, MAX_LEVEL > log_
 

Detailed Description

Definition at line 26 of file lz4.hpp.

Constructor & Destructor Documentation

◆ CompressLZ4Base()

openvpn::CompressLZ4Base::CompressLZ4Base ( const Frame::Ptr frame,
const SessionStats::Ptr stats 
)
inlineprotected

Definition at line 29 of file lz4.hpp.

Member Function Documentation

◆ do_compress()

bool openvpn::CompressLZ4Base::do_compress ( BufferAllocated buf)
inlineprotected

Definition at line 59 of file lz4.hpp.

Here is the caller graph for this function:

◆ do_decompress()

bool openvpn::CompressLZ4Base::do_decompress ( BufferAllocated buf)
inlineprotected

Definition at line 34 of file lz4.hpp.

Here is the caller graph for this function:

◆ lz4_extra_buffer()

size_t openvpn::CompressLZ4Base::lz4_extra_buffer ( const size_t  len)
inlineprotected

Definition at line 99 of file lz4.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ work

BufferAllocated openvpn::CompressLZ4Base::work
protected

Definition at line 107 of file lz4.hpp.


The documentation for this class was generated from the following file: