summaryrefslogtreecommitdiff
path: root/package/inc/ByteGrabber.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'package/inc/ByteGrabber.hxx')
-rw-r--r--package/inc/ByteGrabber.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/package/inc/ByteGrabber.hxx b/package/inc/ByteGrabber.hxx
index 04a5b35f3547..8a695338563e 100644
--- a/package/inc/ByteGrabber.hxx
+++ b/package/inc/ByteGrabber.hxx
@@ -21,6 +21,8 @@
#include <com/sun/star/uno/Sequence.h>
#include <com/sun/star/uno/Reference.h>
+#include <comphelper/bytereader.hxx>
+#include <array>
namespace com::sun::star {
namespace io { class XSeekable; class XInputStream; }
@@ -29,8 +31,8 @@ class ByteGrabber final
{
css::uno::Reference < css::io::XInputStream > xStream;
css::uno::Reference < css::io::XSeekable > xSeek;
- css::uno::Sequence < sal_Int8 > aSequence;
- const sal_Int8 *pSequence;
+ comphelper::ByteReader* mpByteReader;
+ std::array<sal_Int8, 8> maBuffer;
public:
ByteGrabber (css::uno::Reference < css::io::XInputStream > const & xIstream);
@@ -43,6 +45,7 @@ public:
/// @throws css::io::IOException
/// @throws css::uno::RuntimeException
sal_Int32 readBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead );
+ sal_Int32 readBytes( sal_Int8* aData, sal_Int32 nBytesToRead );
// XSeekable
/// @throws css::lang::IllegalArgumentException
/// @throws css::io::IOException