mal-packet-weaver
C++20 packet serialization/deserialization library.
|
Classes | |
struct | function_traits |
Traits for extracting information from a function type. More... | |
struct | function_traits< std::function< Ret(Args...)> > |
Traits for extracting information from a function type. More... | |
struct | index_of_function_arg |
Helper for calculating the index of a type within a function's argument list. More... | |
struct | index_of_function_arg< std::function< Ret(Args...)> > |
Helper for calculating the index of a type within a function's argument list. More... | |
Functions | |
template<typename A > | |
constexpr size_t | CalculateSize () |
Calculates the total size of multiple types in bytes. | |
template<typename A , typename B , typename... Args> | |
constexpr size_t | CalculateSize () |
Calculates the total size of multiple types in bytes. | |
template<typename T > | |
consteval size_t | index_of_helper (std::size_t) |
Calculates the index of a type within a parameter pack. | |
template<typename T , typename U > | |
consteval size_t | index_of_helper (std::size_t index) |
Calculates the index of a type within a parameter pack. | |
template<typename T , typename U , typename V , typename... Rest> | |
consteval size_t | index_of_helper (std::size_t index) |
Calculates the index of a type within a parameter pack. | |
|
constexpr |
Calculates the total size of multiple types in bytes.
A | The type whose size is to be calculated. |
A
in bytes. Definition at line 17 of file template.hpp.
|
constexpr |
Calculates the total size of multiple types in bytes.
A | The first type whose size is to be calculated. |
B | The second type whose size is to be calculated. |
Args | The remaining types whose sizes are to be calculated. |
Definition at line 30 of file template.hpp.
|
consteval |
Calculates the index of a type within a parameter pack.
T | The type to search for. |
U | The current type being checked. |
index | The current index being checked. |
T
if found, otherwise continues to the next type. Definition at line 55 of file template.hpp.
|
consteval |
Calculates the index of a type within a parameter pack.
T | The type to search for. |
U | The current type being checked. |
V | The next type to check. |
Rest | The remaining types to check. |
index | The current index being checked. |
T
if found, otherwise continues to the next type. Definition at line 74 of file template.hpp.
|
consteval |
Calculates the index of a type within a parameter pack.
T | The type to search for. |
index | The current index being checked. |
T
if found, otherwise std::numeric_limits<std::size_t>::max()
. Definition at line 42 of file template.hpp.