aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/BitWriter.hh
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/qpdf/BitWriter.hh')
-rw-r--r--libqpdf/qpdf/BitWriter.hh9
1 files changed, 6 insertions, 3 deletions
diff --git a/libqpdf/qpdf/BitWriter.hh b/libqpdf/qpdf/BitWriter.hh
index 76e28b8e..3ca91977 100644
--- a/libqpdf/qpdf/BitWriter.hh
+++ b/libqpdf/qpdf/BitWriter.hh
@@ -4,6 +4,7 @@
#define BITWRITER_HH
#include <qpdf/DLL.h>
+#include <stddef.h>
class Pipeline;
@@ -15,9 +16,11 @@ class BitWriter
QPDF_DLL
BitWriter(Pipeline* pl);
QPDF_DLL
- void writeBits(unsigned long long val, unsigned int bits);
+ void writeBits(unsigned long long val, size_t bits);
QPDF_DLL
- void writeBitsSigned(long long val, unsigned int bits);
+ void writeBitsSigned(long long val, size_t bits);
+ QPDF_DLL
+ void writeBitsInt(int val, size_t bits);
// Force any partial byte to be written to the pipeline.
QPDF_DLL
void flush();
@@ -25,7 +28,7 @@ class BitWriter
private:
Pipeline* pl;
unsigned char ch;
- unsigned int bit_offset;
+ size_t bit_offset;
};
#endif // BITWRITER_HH