MCPcopy Create free account
hub / github.com/cinder/Cinder / readLittle

Method readLittle

src/cinder/Stream.cpp:94–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92
93template<typename T>
94void IStreamCinder::readLittle( T *t )
95{
96#ifdef CINDER_LITTLE_ENDIAN
97 read( t );
98#else
99 IORead( t, sizeof(T) );
100 *t = swapEndian( *t );
101#endif
102}
103
104////////////////////////////////////////////////////////////////////////////////////////
105

Callers 3

readTestMethod · 0.80
readImplV2Method · 0.80
readImplV1Method · 0.80

Calls 3

IOReadFunction · 0.85
swapEndianFunction · 0.70
readFunction · 0.50

Tested by 1

readTestMethod · 0.64