Changeset 4619 for source/ariba
- Timestamp:
- Jun 29, 2009, 4:50:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/serialization/DataStream.hpp
r3690 r4619 149 149 finline void add(X& obj, if_uint(X)) { 150 150 if (!isMeasure()) 151 bitcpy( obj, 0, bits.getBuffer(), index); 151 // bitcpy( obj, 0, bits.getBuffer(), index); 152 bitcpy( obj, 0, bits.getBuffer(), index, sizeof(X)*8 ); 152 153 index += sizeof(X) * 8; 153 154 } … … 155 156 template<typename X> 156 157 finline void remove(X& obj, if_uint(X)) { 157 if (!isMeasure()) bits[index].get(obj); 158 //if (!isMeasure()) bits[index].get(obj); 159 if (!isMeasure()) 160 bitcpy( bits.getBuffer(), index, obj, 0, sizeof(X)*8 ); 158 161 index += sizeof(X) * 8; 159 162 }
Note:
See TracChangeset
for help on using the changeset viewer.