AMS Advanced Air Mobility Sensors UG
|
Namespaces | |
namespace | internal |
Classes | |
class | CSerializable |
Base class for serializable objects. More... | |
Functions | |
template<typename Type > | |
constexpr uint32_t | SizeOfAllVariables (Type arg) |
Returns size of the argument. | |
template<typename FirstType , typename... Types> | |
constexpr uint32_t | SizeOfAllVariables (FirstType firstVar, Types... vars) |
Returns cumulative size of all argumet types. | |
template<typename... Types> | |
bool | Serialize (std::vector< uint8_t > &orBytes, const Types &... args) |
Serialize a sequence on variables All arguments must be of arithmetic type or an enum, and not boolean. | |
template<typename... Types> | |
bool | Deserialize (const std::vector< uint8_t > &korBytes, Types &... args) |
Parse a sequence of bytes and assign values to arguments. All arguments must be of arithmetic type or an enum, and not boolean. | |
bool NLibCommon::Deserialize | ( | const std::vector< uint8_t > & | korBytes, |
Types &... | args | ||
) |
Parse a sequence of bytes and assign values to arguments. All arguments must be of arithmetic type or an enum, and not boolean.
...Types | Argument types. |
korBytes | Byte vector to parse. |
...args | Arguments to assign values to. |
bool NLibCommon::Serialize | ( | std::vector< uint8_t > & | orBytes, |
const Types &... | args | ||
) |
Serialize a sequence on variables All arguments must be of arithmetic type or an enum, and not boolean.
...Types | Argument types. |
orBytes | Output byte vector. |
...args | Sequence of arguments to be serialized. |
|
constexpr |
Returns cumulative size of all argumet types.
FirstType | Type of the first argument. |
...Types | Argument types. |
firstVar | The first argument. |
...vars | The rest arguments. |
|
constexpr |
Returns size of the argument.
Type | Type of the argument. |
arg | Argument. |