Miscellaneous utils for ROHC libraries.
More...
#include "rohc_utils.h"
#include "config.h"
|
| static uint32_t | rohc_bswap32 (const uint32_t value) |
| | Swap bytes of the given 32-bit integer. More...
|
| |
| static uint16_t | rohc_bswap16 (const uint16_t value) |
| | Swap bytes of the given 16-bit integer. More...
|
| |
| uint32_t | rohc_ntoh32 (const uint32_t net32) |
| | Convert a 32-bit long integer from network to host byte orders. More...
|
| |
| uint16_t | rohc_ntoh16 (const uint16_t net16) |
| | Convert a 16-bit short integer from network to host byte orders. More...
|
| |
| uint32_t | rohc_hton32 (const uint32_t host32) |
| | Convert a 32-bit long integer from host to network byte orders. More...
|
| |
| uint16_t | rohc_hton16 (const uint16_t host16) |
| | Convert a 16-bit short integer from host to network byte orders. More...
|
| |
Miscellaneous utils for ROHC libraries.
- Author
- Didier Barvaux didie.nosp@m.r@ba.nosp@m.rvaux.nosp@m..org
◆ rohc_bswap16()
| static uint16_t rohc_bswap16 |
( |
const uint16_t |
value | ) |
|
|
inlinestatic |
Swap bytes of the given 16-bit integer.
- Parameters
-
| value | The 16-bit value to swap byte for |
- Returns
- The 16-bit value with swapped bytes
◆ rohc_bswap32()
| static uint32_t rohc_bswap32 |
( |
const uint32_t |
value | ) |
|
|
inlinestatic |
Swap bytes of the given 32-bit integer.
- Parameters
-
| value | The 32-bit value to swap byte for |
- Returns
- The 32-bit value with swapped bytes
◆ rohc_hton16()
| uint16_t rohc_hton16 |
( |
const uint16_t |
host16 | ) |
|
Convert a 16-bit short integer from host to network byte orders.
- Parameters
-
| host16 | The 16-bit short integer in host byte order |
- Returns
- The 16-bit short integer converted in network byte order
◆ rohc_hton32()
| uint32_t rohc_hton32 |
( |
const uint32_t |
host32 | ) |
|
Convert a 32-bit long integer from host to network byte orders.
- Parameters
-
| host32 | The 32-bit long integer in host byte order |
- Returns
- The 32-bit long integer converted in network byte order
◆ rohc_ntoh16()
| uint16_t rohc_ntoh16 |
( |
const uint16_t |
net16 | ) |
|
Convert a 16-bit short integer from network to host byte orders.
- Parameters
-
| net16 | The 16-bit short integer in network byte order |
- Returns
- The 16-bit short integer converted in host byte order
◆ rohc_ntoh32()
| uint32_t rohc_ntoh32 |
( |
const uint32_t |
net32 | ) |
|
Convert a 32-bit long integer from network to host byte orders.
- Parameters
-
| net32 | The 32-bit long integer in network byte order |
- Returns
- The 32-bit long integer converted in host byte order