add ByteWriter to reduce memory copying when writing data

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 19 May 2022 19:04 UTC

similarly to ByteReader

move both of them down to comphelper, since we want to use it from comphelper, and comphelper is "below" unotools in the module dependency graph

Change-Id: Ic98fa2268e125fd8e4378fb899ad5f97de721713 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134645

62531ec1091c add ByteWriter to reduce memory copying when writing data
comphelper/source/misc/storagehelper.cxx | 48 ++++++++++++---
comphelper/source/streaming/basicio.cxx | 18 ++++++
comphelper/source/streaming/seqstream.cxx | 24 ++++++++
include/{unotools => comphelper}/bytereader.hxx | 19 +++++-
include/comphelper/seqstream.hxx | 11 +++-
include/unotools/streamwrap.hxx | 4 +-
package/source/xstor/owriteablestream.cxx | 82 +++++++++++++++++++++++++
package/source/xstor/owriteablestream.hxx | 10 +++
ucb/source/ucp/file/filstr.cxx | 4 +-
ucb/source/ucp/file/filstr.hxx | 4 +-
unotools/source/streaming/streamhelper.cxx | 10 ---
unotools/source/streaming/streamwrap.cxx | 4 +-
unotools/source/ucbhelper/ucblockbytes.cxx | 6 +-
13 files changed, 209 insertions(+), 35 deletions(-)

Upstream: cgit.freedesktop.org


  • Share