summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-09-25 14:45:55 +0200
committerMatúš Kukan <matus.kukan@collabora.com>2014-10-23 11:53:15 +0200
commitcc3ac382a2827a42d45f3fcb5e2149c163667ba0 (patch)
treeb4c7fd6c7fb0f86b32a495bffb1200f804c2ef83 /comphelper
parent8cc5b621aa308de2272bed32bc8cd88626455831 (diff)
FastSerializer: Do not keep whole sequence in memory; write in chunks
Change-Id: Ibca65a2b8397358ac4013c8e5b53389ac6949e4d
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/streaming/seqstream.cxx2
1 files changed, 2 insertions, 0 deletions
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;
}