|
CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
|
The declarations in this header file correspond to the definitions in internal_utility.c. More...
Go to the source code of this file.
Enumerations | |
| enum | InternalEnumStringKeyTypes { kKeyProbeState , kKeyProbeCommand , kKeyEndpointManagerCommand } |
| Enums used to indicate which key-value array a function is to access. More... | |
Functions | |
| const char * | InternalUtilityKeyEnumToString (InternalEnumStringKeyTypes key_type, int enum_value) |
| static int64_t | NextMultipleOf (int64_t value, int quantum) |
| static int64_t | PrevMultipleOf (int64_t value, int quantum) |
The declarations in this header file correspond to the definitions in internal_utility.c.
Enums used to indicate which key-value array a function is to access.
NOTE: Update InternalUtilityKeyGetArray in internal_utility.c whenever an entry is added to this table.
| Enumerator | |
|---|---|
| kKeyProbeState | Key for ProbeState. |
| kKeyProbeCommand | Key for ProbeCommand. |
| kKeyEndpointManagerCommand | Key for EndpointManagerCommand. |
| const char * InternalUtilityKeyEnumToString | ( | InternalEnumStringKeyTypes | key_type, |
| int | enum_value ) |
Function used to convert an internal enum value to a string.
| key_type | Enum from InternalEnumStringKeyTypes which indicates which key-value array to search for enum_value. |
| enum_value | Value to convert to a string. |
|
inlinestatic |
Helper function to up-quantize an integer value.
| value | The value to quantize. |
| quantum | The number to calculate a multiple of. |
|
inlinestatic |
Helper function to down-quantize an integer value.
| value | The value to quantize. |
| quantum | The number to calculate a multiple of. |