This module contains some useful functions and macros for common handling.
Please note that this piece of source code is not directly part of the MLPI. You do not need this file to program against the MLPI. Nevertheless, at least parts of this file have been considered to be somewhat useful when using or learning to use MLPI functionality. It is therefore included without any support, but to act as sample code and source of inspiration.
void utilHexdump |
( |
const void * |
data, |
|
|
size_t |
size |
|
) |
| |
|
inline |
Function to print the memory dump of a container onto the screen. See ContainerLib for further information.
- Parameters
-
[in] | data | Name of the container. |
[in] | size | Size of the container. |
Definition at line 107 of file mlpiGlobalHelper.h.
size_t utilSizeOfMlpiType |
( |
MlpiType |
type | ) |
|
|
inline |
Function to determine the size of a MLPI data type.
- Parameters
-
[in] | type | MLPI data type whose size is to be determined |
- Returns
- The size of the assigned MLPI data type.
Definition at line 132 of file mlpiGlobalHelper.h.
References MLPI_TYPE_BOOL8, MLPI_TYPE_BOOL8_ARRAY, MLPI_TYPE_CHAR, MLPI_TYPE_CHAR_ARRAY, MLPI_TYPE_CHAR_UTF16, MLPI_TYPE_CHAR_UTF8, MLPI_TYPE_DOUBLE, MLPI_TYPE_DOUBLE_ARRAY, MLPI_TYPE_FLOAT, MLPI_TYPE_FLOAT_ARRAY, MLPI_TYPE_INVALID, MLPI_TYPE_LLONG, MLPI_TYPE_LLONG_ARRAY, MLPI_TYPE_LONG, MLPI_TYPE_LONG_ARRAY, MLPI_TYPE_SHORT, MLPI_TYPE_SHORT_ARRAY, MLPI_TYPE_UCHAR, MLPI_TYPE_UCHAR_ARRAY, MLPI_TYPE_ULLONG, MLPI_TYPE_ULLONG_ARRAY, MLPI_TYPE_ULONG, MLPI_TYPE_ULONG_ARRAY, MLPI_TYPE_USHORT, and MLPI_TYPE_USHORT_ARRAY.