summaryrefslogtreecommitdiff
path: root/package/source/zipapi/MemoryByteGrabber.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-11-27 16:29:37 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-11-27 17:37:46 +0100
commit0c4b1eae3437358f62bd9e98da0c29d41132204d (patch)
tree534d2eebba0ef23436f4b8786234b7ba0ae4a6ca /package/source/zipapi/MemoryByteGrabber.hxx
parentb4c637f74b1881aa2fb210d7480a6a35794593c4 (diff)
keep track of available data
Change-Id: Idc54cdef0f3a4355a7e26f25cdc5b50d65d9d583 Reviewed-on: https://gerrit.libreoffice.org/45351 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'package/source/zipapi/MemoryByteGrabber.hxx')
-rw-r--r--package/source/zipapi/MemoryByteGrabber.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/source/zipapi/MemoryByteGrabber.hxx b/package/source/zipapi/MemoryByteGrabber.hxx
index 1366eea478b0..5417406db379 100644
--- a/package/source/zipapi/MemoryByteGrabber.hxx
+++ b/package/source/zipapi/MemoryByteGrabber.hxx
@@ -36,6 +36,8 @@ public:
}
const sal_Int8 * getCurrentPos () { return mpBuffer + mnCurrent; }
+ sal_Int32 remainingSize() const { return mnEnd - mnCurrent; }
+
// XInputStream chained
/// @throws css::io::NotConnectedException