MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / sWrite

Function sWrite

Engine/source/sfx/sfxTypes.cpp:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40template< class T >
41inline void sWrite( BitStream* stream, T* ptr )
42{
43 if( stream->writeFlag( ptr != NULL ) )
44 {
45 if( stream->writeFlag( ptr->isClientOnly() ) )
46 stream->writeString( ptr->getName() );
47 else
48 stream->writeRangedU32( ptr->getId(), DataBlockObjectIdFirst, DataBlockObjectIdLast );
49 }
50}
51template< class T >
52inline void sRead( BitStream* stream, T** ptr )
53{

Callers 1

sfxWriteFunction · 0.85

Calls 6

isClientOnlyMethod · 0.80
writeRangedU32Method · 0.80
writeFlagMethod · 0.45
writeStringMethod · 0.45
getNameMethod · 0.45
getIdMethod · 0.45

Tested by

no test coverage detected