Go to the source code of this file.
Defines | |
#define | EXTRACT_16BITS(p) ((u_int16_t)ntohs(*(const u_int16_t *)(p))) |
#define | EXTRACT_32BITS(p) ((u_int32_t)ntohl(*(const u_int32_t *)(p))) |
#define | EXTRACT_64BITS(p) |
#define | EXTRACT_24BITS(p) |
#define | EXTRACT_LE_8BITS(p) (*(p)) |
#define | EXTRACT_LE_16BITS(p) |
#define | EXTRACT_LE_32BITS(p) |
#define | EXTRACT_LE_64BITS(p) |
#define EXTRACT_16BITS | ( | p | ) | ((u_int16_t)ntohs(*(const u_int16_t *)(p))) |
#define EXTRACT_32BITS | ( | p | ) | ((u_int32_t)ntohl(*(const u_int32_t *)(p))) |
#define EXTRACT_64BITS | ( | p | ) |
#define EXTRACT_24BITS | ( | p | ) |
#define EXTRACT_LE_16BITS | ( | p | ) |
Value:
((u_int16_t)((u_int16_t)*((const u_int8_t *)(p) + 1) << 8 | \ (u_int16_t)*((const u_int8_t *)(p) + 0)))
Definition at line 110 of file extract.h.
Referenced by cpack_uint16().
#define EXTRACT_LE_32BITS | ( | p | ) |
Value:
((u_int32_t)((u_int32_t)*((const u_int8_t *)(p) + 3) << 24 | \ (u_int32_t)*((const u_int8_t *)(p) + 2) << 16 | \ (u_int32_t)*((const u_int8_t *)(p) + 1) << 8 | \ (u_int32_t)*((const u_int8_t *)(p) + 0)))
Definition at line 113 of file extract.h.
Referenced by cpack_uint32(), and FillRadioData().
#define EXTRACT_LE_64BITS | ( | p | ) |
Value:
((u_int64_t)((u_int64_t)*((const u_int8_t *)(p) + 7) << 56 | \ (u_int64_t)*((const u_int8_t *)(p) + 6) << 48 | \ (u_int64_t)*((const u_int8_t *)(p) + 5) << 40 | \ (u_int64_t)*((const u_int8_t *)(p) + 4) << 32 | \ (u_int64_t)*((const u_int8_t *)(p) + 3) << 24 | \ (u_int64_t)*((const u_int8_t *)(p) + 2) << 16 | \ (u_int64_t)*((const u_int8_t *)(p) + 1) << 8 | \ (u_int64_t)*((const u_int8_t *)(p) + 0)))
Definition at line 118 of file extract.h.
Referenced by cpack_uint64().