add utl::ByteReader pure class

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

which lets us skip the inefficiency of needing an extra buffer when reading via XInputStream

Change-Id: Ic5334b7d11ea6a57bc1800f508fc69611a053af1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134348

d1dc27fef899 add utl::ByteReader pure class
include/unotools/bytereader.hxx | 31 ++++++++++++++++++++++++++++++
include/unotools/streamwrap.hxx | 12 ++++++++++--
ucb/Library_ucpfile1.mk | 1 +
ucb/source/ucp/file/filstr.cxx | 23 ++++++++++++++++++++++
ucb/source/ucp/file/filstr.hxx | 15 ++++++++++++++-
unotools/source/streaming/streamhelper.cxx | 10 ++++++++++
unotools/source/streaming/streamwrap.cxx | 23 ++++++++++++++++++++++
unotools/source/ucbhelper/ucblockbytes.cxx | 20 ++++++++++++++++---
8 files changed, 129 insertions(+), 6 deletions(-)

Upstream: cgit.freedesktop.org


  • Share