12#ifndef ALIGNMENT_HEADER_PARSED
13#define ALIGNMENT_HEADER_PARSED
29template <typename T, typename = std::enable_if_t<std::is_trivially_copyable<T>::value>>
33 std::memcpy(&
ret, toAlign,
sizeof(T));
Support deferred server-side state creation when client connects.
T alignment_safe_extract(const void *toAlign) noexcept
Converts a byte buffer to the desired type, avoiding undefined behavior due to alignment.