Added a method to reset the memory buffer to the XMLPrinter class.

This enables to reset the printer memory to start again from the beginning.
This commit is contained in:
Reinhard Klambauer 2013-11-22 14:05:21 +01:00
parent 4e74b13e7a
commit 3bc3d4e24c
1 changed files with 8 additions and 0 deletions

View File

@ -1966,6 +1966,14 @@ public:
int CStrSize() const {
return _buffer.Size();
}
/**
If in print to memory mode, reset the buffer to the
beginning.
*/
void ResetBuffer() {
_buffer.Reset();
_buffer.Push(0);
}
protected:
void SealElement();