- Timestamp:
- Jul 21, 2010, 4:27:51 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/libraries/network/synchronisable/Synchronisable.h
r7153 r7159 89 89 { return 14; } 90 90 inline uint16_t getDataSize() const 91 { return (*(uint16_t*)data_) & 0x7FFF; } //only use the first 31bits91 { return (*(uint16_t*)data_) & 0x7FFF; } //only use the first 15 bits 92 92 inline void setDataSize(uint16_t size) 93 { *(uint16_t*)(data_) = (size & 0x7FFF FFFF) | (*(uint16_t*)(data_) & 0x8000 ); }93 { *(uint16_t*)(data_) = (size & 0x7FFF) | (*(uint16_t*)(data_) & 0x8000 ); } 94 94 inline bool isDiffed() const 95 95 { return ( (*(uint16_t*)data_) & 0x8000 ) == 0x8000; }
Note: See TracChangeset
for help on using the changeset viewer.