25 return *(
const uint8_t*)(cp);
41 static inline uint16_t
53 static inline uint32_t
65 static inline uint64_t
101 #if defined(WORDS_BIGENDIAN)
102 static inline uint16_t
108 static inline uint16_t
114 static inline uint32_t
120 static inline uint32_t
126 static inline uint64_t
132 static inline uint64_t
141 static inline uint16_t
146 ((a & 0x00ff) << 8) |
153 static inline uint16_t
162 static inline uint32_t
167 ((a & 0x000000ff) <<24) |
168 ((a & 0x0000ff00) << 8) |
169 ((a & 0x00ff0000) >> 8) |
170 ((a & 0xff000000) >>24);
176 static inline uint32_t
183 static inline uint64_t
188 (((uint64_t)
tor_htonl((uint32_t)a))<<32);
192 static inline uint64_t
static uint16_t tor_htons(uint16_t a)
static uint32_t tor_htonl(uint32_t a)
static void set_uint16(void *cp, uint16_t v)
static uint64_t tor_ntohll(uint64_t a)
static uint16_t get_uint16(const void *cp)
static void set_uint64(void *cp, uint64_t v)
static uint32_t tor_ntohl(uint32_t a)
static void set_uint32(void *cp, uint32_t v)
static uint8_t get_uint8(const void *cp)
static void set_uint8(void *cp, uint8_t v)
static uint32_t get_uint32(const void *cp)
static uint16_t tor_ntohs(uint16_t a)
static uint64_t tor_htonll(uint64_t a)
static uint64_t get_uint64(const void *cp)
Integer definitions used throughout Tor.