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

#include <frame.hpp>

Public Member Functions

 Context ()
 
 Context (const size_t headroom, const size_t payload, const size_t tailroom, const size_t align_adjust, const size_t align_block, const unsigned int buffer_flags)
 
void reset_align_adjust (const size_t align_adjust)
 
size_t headroom () const
 
size_t payload () const
 
size_t tailroom () const
 
size_t capacity () const
 
unsigned int buffer_flags () const
 
size_t prepare (Buffer &buf) const
 
BufferAllocated alloc () const
 
void realign (Buffer &buf) const
 
BufferPtr copy (const unsigned char *data, const size_t size) const
 
BufferAllocated copy_by_value (const unsigned char *data, const size_t size) const
 
BufferPtr copy (const BufferPtr &buf) const
 
size_t remaining_payload (const Buffer &buf) const
 
void standardize_capacity (const size_t newcap)
 
openvpn_io::mutable_buffer mutable_buffer (Buffer &buf) const
 
openvpn_io::mutable_buffer mutable_buffer_clamp (Buffer &buf) const
 
std::string info () const
 

Private Member Functions

void recalc_derived ()
 
size_t actual_headroom (const void *base) const
 

Private Attributes

size_t headroom_
 
size_t payload_
 
size_t tailroom_
 
size_t align_adjust_
 
size_t align_block_
 
unsigned int buffer_flags_
 
size_t adj_headroom_
 
size_t adj_capacity_
 

Detailed Description

Definition at line 57 of file frame.hpp.

Constructor & Destructor Documentation

◆ Context() [1/2]

openvpn::Frame::Context::Context ( )
inline

Definition at line 60 of file frame.hpp.

◆ Context() [2/2]

openvpn::Frame::Context::Context ( const size_t  headroom,
const size_t  payload,
const size_t  tailroom,
const size_t  align_adjust,
const size_t  align_block,
const unsigned int  buffer_flags 
)
inline

Definition at line 72 of file frame.hpp.

Member Function Documentation

◆ actual_headroom()

size_t openvpn::Frame::Context::actual_headroom ( const void *  base) const
inlineprivate

Definition at line 229 of file frame.hpp.

Here is the caller graph for this function:

◆ alloc()

BufferAllocated openvpn::Frame::Context::alloc ( ) const
inline

Definition at line 124 of file frame.hpp.

◆ buffer_flags()

unsigned int openvpn::Frame::Context::buffer_flags ( ) const
inline

Definition at line 109 of file frame.hpp.

Here is the caller graph for this function:

◆ capacity()

size_t openvpn::Frame::Context::capacity ( ) const
inline

Definition at line 105 of file frame.hpp.

Here is the caller graph for this function:

◆ copy() [1/2]

BufferPtr openvpn::Frame::Context::copy ( const BufferPtr buf) const
inline

Definition at line 159 of file frame.hpp.

◆ copy() [2/2]

BufferPtr openvpn::Frame::Context::copy ( const unsigned char *  data,
const size_t  size 
) const
inline

Definition at line 138 of file frame.hpp.

Here is the caller graph for this function:

◆ copy_by_value()

BufferAllocated openvpn::Frame::Context::copy_by_value ( const unsigned char *  data,
const size_t  size 
) const
inline

Definition at line 148 of file frame.hpp.

◆ headroom()

size_t openvpn::Frame::Context::headroom ( ) const
inline

Definition at line 93 of file frame.hpp.

Here is the caller graph for this function:

◆ info()

std::string openvpn::Frame::Context::info ( ) const
inline

Definition at line 202 of file frame.hpp.

Here is the caller graph for this function:

◆ mutable_buffer()

openvpn_io::mutable_buffer openvpn::Frame::Context::mutable_buffer ( Buffer buf) const
inline

Definition at line 190 of file frame.hpp.

Here is the caller graph for this function:

◆ mutable_buffer_clamp()

openvpn_io::mutable_buffer openvpn::Frame::Context::mutable_buffer_clamp ( Buffer buf) const
inline

Definition at line 196 of file frame.hpp.

Here is the caller graph for this function:

◆ payload()

size_t openvpn::Frame::Context::payload ( ) const
inline

Definition at line 97 of file frame.hpp.

Here is the caller graph for this function:

◆ prepare()

size_t openvpn::Frame::Context::prepare ( Buffer buf) const
inline

Definition at line 116 of file frame.hpp.

Here is the caller graph for this function:

◆ realign()

void openvpn::Frame::Context::realign ( Buffer buf) const
inline

Definition at line 132 of file frame.hpp.

Here is the caller graph for this function:

◆ recalc_derived()

void openvpn::Frame::Context::recalc_derived ( )
inlineprivate

Definition at line 217 of file frame.hpp.

Here is the caller graph for this function:

◆ remaining_payload()

size_t openvpn::Frame::Context::remaining_payload ( const Buffer buf) const
inline

Definition at line 171 of file frame.hpp.

Here is the caller graph for this function:

◆ reset_align_adjust()

void openvpn::Frame::Context::reset_align_adjust ( const size_t  align_adjust)
inline

Definition at line 88 of file frame.hpp.

Here is the caller graph for this function:

◆ standardize_capacity()

void openvpn::Frame::Context::standardize_capacity ( const size_t  newcap)
inline

Definition at line 181 of file frame.hpp.

Here is the caller graph for this function:

◆ tailroom()

size_t openvpn::Frame::Context::tailroom ( ) const
inline

Definition at line 101 of file frame.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ adj_capacity_

size_t openvpn::Frame::Context::adj_capacity_
private

Definition at line 244 of file frame.hpp.

◆ adj_headroom_

size_t openvpn::Frame::Context::adj_headroom_
private

Definition at line 243 of file frame.hpp.

◆ align_adjust_

size_t openvpn::Frame::Context::align_adjust_
private

Definition at line 238 of file frame.hpp.

◆ align_block_

size_t openvpn::Frame::Context::align_block_
private

Definition at line 239 of file frame.hpp.

◆ buffer_flags_

unsigned int openvpn::Frame::Context::buffer_flags_
private

Definition at line 240 of file frame.hpp.

◆ headroom_

size_t openvpn::Frame::Context::headroom_
private

Definition at line 235 of file frame.hpp.

◆ payload_

size_t openvpn::Frame::Context::payload_
private

Definition at line 236 of file frame.hpp.

◆ tailroom_

size_t openvpn::Frame::Context::tailroom_
private

Definition at line 237 of file frame.hpp.


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