- Timestamp:
- Dec 2, 2008, 9:10:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network64/src/network/synchronisable/SynchronisableVariable.cc
r2255 r2309 64 64 } 65 65 66 // =========== char 67 68 template <> uint32_t SynchronisableVariable<const char>::returnSize() 69 { 70 return sizeof(uint8_t); 71 } 72 73 template <> void SynchronisableVariable<const char>::setAndIncrease( uint8_t*& mem ) 74 { 75 *(uint8_t*)(&this->variable_) = *static_cast<uint8_t*>(mem); 76 mem += SynchronisableVariable<const char>::returnSize(); 77 } 78 79 template <> void SynchronisableVariable<const char>::getAndIncrease( uint8_t*& mem ) 80 { 81 *static_cast<uint8_t*>(mem) = *(uint8_t*)(&this->variable_); 82 mem += SynchronisableVariable<const char>::returnSize(); 83 } 84 85 template <> bool SynchronisableVariable<const char>::checkEquality( uint8_t* mem ) 86 { 87 return *static_cast<uint8_t*>(mem) == *(uint8_t*)(&this->variable_); 88 } 89 66 90 // =========== unsigned char 67 91
Note: See TracChangeset
for help on using the changeset viewer.