From cc3ac382a2827a42d45f3fcb5e2149c163667ba0 Mon Sep 17 00:00:00 2001 From: Matúš Kukan Date: Thu, 25 Sep 2014 14:45:55 +0200 Subject: FastSerializer: Do not keep whole sequence in memory; write in chunks Change-Id: Ibca65a2b8397358ac4013c8e5b53389ac6949e4d --- comphelper/source/streaming/seqstream.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'comphelper') diff --git a/comphelper/source/streaming/seqstream.cxx b/comphelper/source/streaming/seqstream.cxx index d66ce3bde083..aec451986075 100644 --- a/comphelper/source/streaming/seqstream.cxx +++ b/comphelper/source/streaming/seqstream.cxx @@ -214,6 +214,8 @@ void SAL_CALL OSequenceOutputStream::flush( ) throw(NotConnectedException, Buff // cut the sequence to the real size m_rSequence.realloc(m_nSize); + // and next time write to the beginning + m_nSize = 0; } -- cgit