Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
45
template <typename T>
46
static inline T hton(const T& v) {
47
return isNetworkOrder() ? v : byteSwap(v);
48
}
49
50
template <typename T>
51
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