12 #ifndef ROC_CORE_ENDIAN_H_
13 #define ROC_CORE_ENDIAN_H_
static T swap_native_be(T v)
Swap between native endian and big endian.
int32_t hton32s(int32_t v)
Host to network byte order (signed 32-bit).
uint16_t hton16u(uint16_t v)
Host to network byte order (unsigned 16-bit).
int32_t ntoh32s(int32_t v)
Network to host byte order (signed 32-bit).
int16_t hton16s(int16_t v)
Host to network byte order (signed 16-bit).
uint64_t hton64u(uint64_t v)
Host to network byte order (unsigned 64-bit).
uint16_t ntoh16u(uint16_t v)
Network to host byte order (unsigned 16-bit).
int64_t ntoh64s(int64_t v)
Network to host byte order (signed 64-bit).
uint64_t ntoh64u(uint64_t v)
Network to host byte order (unsigned 64-bit).
uint32_t hton32u(uint32_t v)
Host to network byte order (unsigned 32-bit).
int64_t hton64s(int64_t v)
Host to network byte order (signed 64-bit).
int16_t ntoh16s(int16_t v)
Network to host byte order (signed 16-bit).
uint32_t ntoh32u(uint32_t v)
Network to host byte order (unsigned 32-bit).