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

Function isNetworkOrder

include/singa/io/integer.h:28–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27namespace singa{
28static bool isNetworkOrder() {
29 int test = 1;
30 return (1 != *(uint8_t*)&test);
31}
32
33template <typename T>
34static inline T byteSwap(const T& v) {

Callers 1

htonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected