if (ptr) SerializeTrait<T>::Emit(*this,*ptr);
}
- void Flush() { if (inRecord()) EmitRecord(); }
+ void FlushRecord() { if (inRecord()) EmitRecord(); }
void EnterBlock(unsigned BlockID = 8, unsigned CodeLen = 3);
void ExitBlock();
while (BlockLevel > 0)
Stream.ExitBlock();
-
+
Stream.FlushToWord();
}
}
void Serializer::EnterBlock(unsigned BlockID,unsigned CodeLen) {
- Flush();
+ FlushRecord();
Stream.EnterSubblock(BlockID,CodeLen);
++BlockLevel;
}
void Serializer::ExitBlock() {
assert (BlockLevel > 0);
--BlockLevel;
- Flush();
+ FlushRecord();
Stream.ExitBlock();
}