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

Function hton

include/singa/io/integer.h:46–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45template <typename T>
46static inline T hton(const T& v)
47{
48 return isNetworkOrder() ? v : byteSwap(v);
49}
50
51template <typename T>
52static 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