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