MCPcopy Create free account
hub / github.com/ImageEngine/cortex / reverseBytes

Function reverseBytes

include/IECore/ByteOrder.h:75–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73/// Returns a copy of x with reversed byte order.
74template<typename T>
75inline T reverseBytes( const T &x )
76{
77 // needs specialising for each type
78 BOOST_STATIC_ASSERT(sizeof(T)==0);
79}
80
81template<>
82inline char reverseBytes<char>( const char &x )

Callers 7

openMethod · 0.85
readElementsMethod · 0.85
writeAttrFunction · 0.85
writeSimpleAttrFunction · 0.85
reverseBytes<float>Function · 0.85
asLittleEndianFunction · 0.85
asBigEndianFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected