MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / byte_swap

Function byte_swap

include/jsoncons/utility/binary.hpp:19–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18 template<class T>
19 typename std::enable_if<std::is_integral<T>::value && sizeof(T) == sizeof(uint8_t),T>::type
20 byte_swap(T val)
21 {
22 return val;
23 }
24
25 template<class T>
26 typename std::enable_if<std::is_integral<T>::value && sizeof(T) == sizeof(uint16_t),T>::type

Callers 4

native_to_bigFunction · 0.85
native_to_littleFunction · 0.85
big_to_nativeFunction · 0.85
little_to_nativeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected