D++ (DPP)  10.0.30
C++ Discord API Bot Library
sysdep.h File Reference
#include <stdlib.h>
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <arpa/inet.h>
Include dependency graph for sysdep.h:
This graph shows which files directly or indirectly include this file:

Macros

#define __LITTLE_ENDIAN__
 
#define etf_byte_order_16(x)   ntohs(x)
 
#define etf_byte_order_32(x)   ntohl(x)
 
#define etf_byte_order_64(x)
 
#define store_16_bits(to, num)   do { uint16_t val = etf_byte_order_16(num); memcpy(to, &val, 2); } while(0)
 
#define store_32_bits(to, num)   do { uint32_t val = etf_byte_order_32(num); memcpy(to, &val, 4); } while(0)
 
#define store_64_bits(to, num)   do { uint64_t val = etf_byte_order_64(num); memcpy(to, &val, 8); } while(0)
 

Macro Definition Documentation

◆ __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

#define store_16_bits (   to,
  num 
)    do { uint16_t val = etf_byte_order_16(num); memcpy(to, &val, 2); } while(0)

◆ store_32_bits

#define store_32_bits (   to,
  num 
)    do { uint32_t val = etf_byte_order_32(num); memcpy(to, &val, 4); } while(0)

◆ store_64_bits

#define store_64_bits (   to,
  num 
)    do { uint64_t val = etf_byte_order_64(num); memcpy(to, &val, 8); } while(0)
dpp::unicode_emoji::x
constexpr const char x[]
Definition: unicode_emoji.h:5260