From 97f5151099967e6c823d640a90d87bca92c44035 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 29 Oct 2019 03:00:39 +0000 Subject: CTAN sync 201910290300 --- dviware/dvisvgm/src/StreamReader.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'dviware/dvisvgm/src/StreamReader.hpp') diff --git a/dviware/dvisvgm/src/StreamReader.hpp b/dviware/dvisvgm/src/StreamReader.hpp index 2b95f653ca..05c4e1e701 100644 --- a/dviware/dvisvgm/src/StreamReader.hpp +++ b/dviware/dvisvgm/src/StreamReader.hpp @@ -26,7 +26,7 @@ #include #include "MessageException.hpp" -class CRC32; +class HashFunction; class StreamReader { public: @@ -37,17 +37,17 @@ class StreamReader { void clearStream () {_is->clear();} std::istream& replaceStream (std::istream &s); uint32_t readUnsigned (int n); - uint32_t readUnsigned (int n, CRC32 &crc32); + uint32_t readUnsigned (int n, HashFunction &hashfunc); int32_t readSigned (int n); - int32_t readSigned (int n, CRC32 &crc32); + int32_t readSigned (int n, HashFunction &hashfunc); std::string readString (); - std::string readString (CRC32 &crc32, bool finalZero=false); + std::string readString (HashFunction &hashfunc, bool finalZero=false); std::string readString (int length); - std::string readString (int length, CRC32 &crc32); - std::vector& readBytes (int n, std::vector &bytes); - std::vector& readBytes (int n, std::vector &bytes, CRC32 &crc32); + std::string readString (int length, HashFunction &hashfunc); + std::vector readBytes (int n); + std::vector readBytes (int n, HashFunction &hash); int readByte () {return _is->get();} - int readByte (CRC32 &crc32); + int readByte (HashFunction &hashfunc); void seek (std::streampos pos, std::ios::seekdir dir) {_is->seekg(pos, dir);} void seek (std::streampos pos) {_is->seekg(pos);} std::streampos tell () const {return _is->tellg();} -- cgit v1.2.3