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

Method writeLittle

src/cinder/Stream.cpp:53–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52template<typename T>
53void OStream::writeLittle( T t )
54{
55#if defined( CINDER_LITTLE_ENDIAN )
56 write( t );
57#else
58 t = swapEndian( t );
59 IOWrite( &t, sizeof(T) );
60#endif
61}
62
63//////////////////////////////////////////////////////////////////////////
64void IStreamCinder::read( std::string *s )

Callers 1

writeMethod · 0.80

Calls 3

IOWriteFunction · 0.85
swapEndianFunction · 0.70
writeFunction · 0.50

Tested by

no test coverage detected