MIP_SDK
v3.0.0-187-g93c7302
MicroStrain Communications Library for embedded systems
|
Functions | |
template<class Field , class T , auto Ptr> | |
void * | access (void *p) |
Type | serializedType (const TypeInfo &type) |
Determines the type used for serialization purposes. More... | |
constexpr size_t | serializedSizeForBasicType (Type type, const void *info=nullptr) |
Gets the size of a basic type (including bitfields and enums if class_ is not NULL). More... | |
constexpr size_t | serializedSizeForBasicType (const TypeInfo &type) |
constexpr const char * | nameForBasicType (Type type) |
constexpr const char * | nameOfType (const TypeInfo &type) |
constexpr size_t | sizeForBasicType (const Type type, const void *info=nullptr) |
Gets the size of a basic type (including bitfields and enums if info is not NULL). More... | |
constexpr size_t | sizeForBasicType (const TypeInfo &type) |
constexpr size_t | alignmentForBasicType (const Type type, const void *info=nullptr) |
Gets the size of a basic type (including bitfields and enums if info is not NULL). More... | |
constexpr size_t | alignmentForBasicType (const TypeInfo &type) |
const ParameterInfo * | getParameterInfoFromStructMemberOffset (const size_t offset, const FieldInfo &field_info) |
Get a pointer to a parameter given the offset of the member in the class/struct. More... | |
void* mip::metadata::utils::access | ( | void * | p | ) |
|
constexpr |
Gets the size of a basic type (including bitfields and enums if info is not NULL).
|
constexpr |
|
inline |
Get a pointer to a parameter given the offset of the member in the class/struct.
offset | The offset of the member within the struct/class. Use the C++ offsetof or a variant to get this value |
field_info | Metadata field info to look up parameter info for |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Gets the size of a basic type (including bitfields and enums if class_ is not NULL).
Determines the type used for serialization purposes.
This essentially translates bitfields and enums to their underlying types.
|
constexpr |
Gets the size of a basic type (including bitfields and enums if info is not NULL).
|
constexpr |