summaryrefslogtreecommitdiff
path: root/include/tools/stream.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-11-05 11:24:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-01 12:13:59 +0100
commite10e5c15cc51d3b2a5e4b699c5f381aa92a17c4e (patch)
treeddbe3e3146a365f7f2ba79ce73e18568a834d104 /include/tools/stream.hxx
parentfabce43fe1caf3a59a7d9dc1074a74b704f9fa24 (diff)
improve the script for reducing symbol exports
And apply some of the results Change-Id: If555476fdd951cbc1d01fb3ef3ab1cbca2b64960 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124896 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/tools/stream.hxx')
-rw-r--r--include/tools/stream.hxx17
1 files changed, 9 insertions, 8 deletions
diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx
index 5e78f6d259af..306a7584a8c3 100644
--- a/include/tools/stream.hxx
+++ b/include/tools/stream.hxx
@@ -18,6 +18,7 @@
*/
#pragma once
+#include <config_options.h>
#include <tools/toolsdllapi.h>
#include <tools/lineend.hxx>
#include <tools/long.hxx>
@@ -186,12 +187,12 @@ protected:
virtual void SetSize(sal_uInt64 nSize);
void FlushBuffer();
- void ClearError();
- void ClearBuffer();
+ SAL_DLLPRIVATE void ClearError();
+ SAL_DLLPRIVATE void ClearBuffer();
// encrypt and write in blocks
- std::size_t CryptAndWriteBuffer( const void* pStart, std::size_t nLen );
- void EncryptBuffer( void* pStart, std::size_t nLen ) const;
+ SAL_DLLPRIVATE std::size_t CryptAndWriteBuffer( const void* pStart, std::size_t nLen );
+ SAL_DLLPRIVATE void EncryptBuffer( void* pStart, std::size_t nLen ) const;
public:
SvStream();
@@ -331,7 +332,7 @@ public:
Maximum of codepoints (UCS-2 or UTF-16 pairs, not bytes) to
read, if line is longer it will be truncated.
*/
- bool ReadUniStringLine(OUString& rStr, sal_Int32 nMaxCodepointsToRead);
+ SAL_DLLPRIVATE bool ReadUniStringLine(OUString& rStr, sal_Int32 nMaxCodepointsToRead);
/** Read a 32bit length prefixed sequence of utf-16 if
eSrcCharSet==RTL_TEXTENCODING_UNICODE, otherwise read a 16bit length
prefixed sequence of bytes and convert from eSrcCharSet */
@@ -416,13 +417,13 @@ private:
void readNumberWithoutSwap(T& rDataDest)
{ readNumberWithoutSwap_(&rDataDest, sizeof(rDataDest)); }
- void readNumberWithoutSwap_(void * pDataDest, int nDataSize);
+ SAL_DLLPRIVATE void readNumberWithoutSwap_(void * pDataDest, int nDataSize);
template<typename T>
void writeNumberWithoutSwap(T const & rDataSrc)
{ writeNumberWithoutSwap_(&rDataSrc, sizeof(rDataSrc)); }
- void writeNumberWithoutSwap_(const void * pDataSrc, int nDataSize);
+ SAL_DLLPRIVATE void writeNumberWithoutSwap_(const void * pDataSrc, int nDataSize);
};
inline SvStream& operator<<( SvStream& rStr, SvStrPtr f )
@@ -491,7 +492,7 @@ std::size_t write_uInt32_lenPrefixed_uInt16s_FromOUString(SvStream& rStrm,
/// Attempt to write a pascal-style length (of type prefix) prefixed sequence
/// of 16bit units from an OUString, returned value is number of bytes written
/// (including byte-count of prefix)
-TOOLS_DLLPUBLIC std::size_t write_uInt16_lenPrefixed_uInt16s_FromOUString(SvStream& rStrm,
+UNLESS_MERGELIBS(TOOLS_DLLPUBLIC) std::size_t write_uInt16_lenPrefixed_uInt16s_FromOUString(SvStream& rStrm,
std::u16string_view rStr);
/// Attempt to read 8bit units to an OString until a zero terminator is