tnlBitStream.h File Reference
tnlBitStream.h File Reference
#include "tnlByteBuffer.h"
#include "tnlConnectionStringTable.h"
Define Documentation
#define DeclareTemplatizedReadWrite |
( |
T |
|
) |
|
|
|
Value: inline bool write(T value) { T temp = convertHostToLEndian(value); return write(sizeof(T), &temp); } \
inline bool read(T *value) { T temp; bool success = read(sizeof(T), &temp); *value = convertLEndianToHost(temp); return success;}
Helper macro used in BitStream declaration.
- Note:
- DeclareTemplatizedReadWrite macro declares a read and write function for the specified type. This is a macro because MSVC6 has seriously broken template functionality. Thanks MS!
|