| 39 | |
| 40 | template< class T > |
| 41 | inline 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 | } |
| 51 | template< class T > |
| 52 | inline void sRead( BitStream* stream, T** ptr ) |
| 53 | { |
no test coverage detected