MCPcopy Create free account
hub / github.com/apache/singa / hton

Function hton

include/singa/utils/integer.h:46–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45template <typename T>
46static inline T hton(const T& v) {
47 return isNetworkOrder() ? v : byteSwap(v);
48}
49
50template <typename T>
51static inline T ntoh(const T& v) {

Callers 2

ntohFunction · 0.70
appendIntegerFunction · 0.70

Calls 2

isNetworkOrderFunction · 0.70
byteSwapFunction · 0.70

Tested by

no test coverage detected