#include <stdint.h>
#include <osmocom/core/endian.h>
Go to the source code of this file.
|
static uint32_t | osmo_swab32 (uint32_t in) |
| byte-swap a 32bit word
|
static uint16_t | osmo_swab16 (uint16_t in) |
| byte-swap a 16bit word
|
◆ osmo_htonl
◆ osmo_htons
Value:
static uint16_t osmo_swab16(uint16_t in)
byte-swap a 16bit word
Definition byteswap.h:25
Referenced by gsmtap_makemsg_ex().
◆ osmo_ntohl
◆ osmo_ntohs
◆ osmo_swab16()
uint16_t osmo_swab16 |
( |
uint16_t | in | ) |
|
|
inlinestatic |
byte-swap a 16bit word
- Parameters
-
[in] | in | to be swapped 16bit word |
- Returns
- byte-swapped 16bit word
◆ osmo_swab32()
uint32_t osmo_swab32 |
( |
uint32_t | in | ) |
|
|
inlinestatic |
byte-swap a 32bit word
- Parameters
-
[in] | in | to be swapped 32bit word |
- Returns
- byte-swapped 32bit word