#include <stdlib.h>
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <arpa/inet.h>
◆ __LITTLE_ENDIAN__
#define __LITTLE_ENDIAN__ |
◆ etf_byte_order_16
#define etf_byte_order_16 |
( |
|
x | ) |
ntohs(x) |
◆ etf_byte_order_32
#define etf_byte_order_32 |
( |
|
x | ) |
ntohl(x) |
◆ etf_byte_order_64
#define etf_byte_order_64 |
( |
|
x | ) |
|
Value: ( ((((uint64_t)
x) << 56) ) | \
((((uint64_t)
x) << 40) & 0x00ff000000000000ULL ) | \
((((uint64_t)
x) << 24) & 0x0000ff0000000000ULL ) | \
((((uint64_t)
x) << 8) & 0x000000ff00000000ULL ) | \
((((uint64_t)
x) >> 8) & 0x00000000ff000000ULL ) | \
((((uint64_t)
x) >> 24) & 0x0000000000ff0000ULL ) | \
((((uint64_t)
x) >> 40) & 0x000000000000ff00ULL ) | \
((((uint64_t)
x) >> 56) ) )
◆ store_16_bits
◆ store_32_bits
◆ store_64_bits