Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
45
template <typename T>
46
static inline T hton(const T& v)
47
{
48
return isNetworkOrder() ? v : byteSwap(v);
49
}
50
51
template <typename T>
52
static inline T ntoh(const T& v)
Callers
2
ntoh
Function · 0.70
appendInteger
Function · 0.70
Calls
2
isNetworkOrder
Function · 0.70
byteSwap
Function · 0.70
Tested by
no test coverage detected