#ifndef SOCKS_UTIL_H_ #define SOCKS_UTIL_H_ #include #include extern void data_size_to_string(size_t value, char *out, size_t outsz); static inline bool power_of_2(size_t x) { return (x > 0 && (x & (x - 1)) == 0); } #endif