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

Function asBigEndian

include/IECore/ByteOrder.h:184–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182/// otherwise returns x unchanged.
183template<typename T>
184inline T asBigEndian( const T &x )
185{
186 if( littleEndian() )
187 {
188 return reverseBytes( x );
189 }
190 else
191 {
192 return x;
193 }
194}
195
196}
197

Callers 2

doWriteMethod · 0.85
readHeaderMethod · 0.85

Calls 2

littleEndianFunction · 0.85
reverseBytesFunction · 0.85

Tested by

no test coverage detected