OpenVPN 3 Core Library
|
#include <cstring>
#include <type_traits>
Go to the source code of this file.
Namespaces | |
namespace | openvpn |
Functions | |
template<typename T > | |
requires ::std::is_trivially_copyable_v< T > T | openvpn::alignment_safe_extract (const void *toAlign) noexcept |
Converts a byte buffer to the desired type, avoiding undefined behavior due to alignment. | |