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

Function readLittleEndian

src/IECore/StreamIndexedIO.cpp:142–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140
141template<typename F, typename T>
142void readLittleEndian( F &f, T &n )
143{
144 f.read( (char*) &n, sizeof(T) );
145
146 if (bigEndian())
147 {
148 n = reverseBytes<>(n);
149 }
150 else
151 {
152 /// Already little endian
153 }
154}
155
156namespace IECore
157{

Callers 9

StringCacheMethod · 0.85
readMethod · 0.85
openStreamMethod · 0.85
readNodeV4Method · 0.85
readNodeV5Method · 0.85
readNodeMethod · 0.85
readMethod · 0.85
readNodeFromSubIndexMethod · 0.85
canReadMethod · 0.85

Calls 2

bigEndianFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected