diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-01 23:55:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-02 09:54:18 +0100 |
commit | 0ee8ec18c4218da4f82c4ff2bf601edca42100be (patch) | |
tree | 7bde351118562e0060dcb50e51ed4f9ada3e1c95 /tools/inc/tools/stream.hxx | |
parent | 088e175776fe0fa37c859b68278f5d4304d7ddd6 (diff) |
add a way to better construct an OString of len X from a SvStream
Diffstat (limited to 'tools/inc/tools/stream.hxx')
-rw-r--r-- | tools/inc/tools/stream.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/inc/tools/stream.hxx b/tools/inc/tools/stream.hxx index 5323e3cca40d..baaf758125c4 100644 --- a/tools/inc/tools/stream.hxx +++ b/tools/inc/tools/stream.hxx @@ -564,6 +564,10 @@ TOOLS_DLLPUBLIC SvStream& endlu( SvStream& rStr ); /// call endlu() if eStreamCharSet==RTL_TEXTECODING_UNICODE otherwise endl() TOOLS_DLLPUBLIC SvStream& endlub( SvStream& rStr ); +//Attempt to read nSize bytes to an OString, returned rtl::OString's length is +//number of bytes successfully read +TOOLS_DLLPUBLIC rtl::OString readBytesAsOString(SvStream& rStr, sal_Size nSize); + // -------------- // - FileStream - // -------------- |