ROHC compression/decompression library
|
Miscellaneous utils for ROHC libraries. More...
Go to the source code of this file.
Defines | |
#define | rohc_max(value1, value2) ( ((value1) >= (value2)) ? (value1) : (value2) ) |
#define | rohc_min(value1, value2) ( ((value1) <= (value2)) ? (value1) : (value2) ) |
Functions | |
uint32_t ROHC_EXPORT | rohc_ntoh32 (const uint32_t net32) __attribute__((const )) |
uint16_t ROHC_EXPORT | rohc_ntoh16 (const uint16_t net16) __attribute__((const )) |
uint32_t ROHC_EXPORT | rohc_hton32 (const uint32_t host32) __attribute__((const )) |
uint16_t ROHC_EXPORT | rohc_hton16 (const uint16_t host16) __attribute__((const )) |
Miscellaneous utils for ROHC libraries.
#define rohc_max | ( | value1, | |
value2 | |||
) | ( ((value1) >= (value2)) ? (value1) : (value2) ) |
Get the max value of the 2 given
#define rohc_min | ( | value1, | |
value2 | |||
) | ( ((value1) <= (value2)) ? (value1) : (value2) ) |
Get the max value of the 2 given
Referenced by code_UOR2_TS_bytes(), rohc_comp_get_segment(), rohc_compress2(), and rohc_decompress().
uint16_t ROHC_EXPORT rohc_hton16 | ( | const uint16_t | host16 | ) | const |
uint32_t ROHC_EXPORT rohc_hton32 | ( | const uint32_t | host32 | ) | const |
uint16_t ROHC_EXPORT rohc_ntoh16 | ( | const uint16_t | net16 | ) | const |
uint32_t ROHC_EXPORT rohc_ntoh32 | ( | const uint32_t | net32 | ) | const |