summaryrefslogtreecommitdiffstats
path: root/include/qpdf/Pl_Count.hh
diff options
context:
space:
mode:
Diffstat (limited to 'include/qpdf/Pl_Count.hh')
-rw-r--r--include/qpdf/Pl_Count.hh7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/qpdf/Pl_Count.hh b/include/qpdf/Pl_Count.hh
index c2543f21..e5b8939f 100644
--- a/include/qpdf/Pl_Count.hh
+++ b/include/qpdf/Pl_Count.hh
@@ -12,6 +12,7 @@
// calling finish().
#include <qpdf/Pipeline.hh>
+#include <qpdf/Types.h>
class Pl_Count: public Pipeline
{
@@ -21,19 +22,19 @@ class Pl_Count: public Pipeline
QPDF_DLL
virtual ~Pl_Count();
QPDF_DLL
- virtual void write(unsigned char*, int);
+ virtual void write(unsigned char*, size_t);
QPDF_DLL
virtual void finish();
// Returns the number of bytes written
QPDF_DLL
- int getCount() const;
+ off_t getCount() const;
// Returns the last character written, or '\0' if no characters
// have been written (in which case getCount() returns 0)
QPDF_DLL
unsigned char getLastChar() const;
private:
- int count;
+ off_t count;
unsigned char last_char;
};