MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / integerByteSwapImpl

Function integerByteSwapImpl

inc/osvr/Common/IntegerByteSwap.h:171–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169 /// have an exact match to an explicit specialization
170 template <typename T>
171 inline T integerByteSwapImpl(
172 T const v,
173 typename std::enable_if<
174 IntegerByteSwapTraits<T>::HAVE_BYTESWAPPER>::type * = nullptr) {
175 typedef IntegerByteSwapTraits<T> Traits;
176 return Traits::ByteSwapper::apply(v);
177 }
178
179 /// @brief Implementation of integerByteSwap(): Gets called when we
180 /// do not have an exact match to an explicit specialization, but we

Callers

nothing calls this directly

Calls 2

genericByteSwapFunction · 0.85
applyClass · 0.70

Tested by

no test coverage detected