diff options
author | Norbert Preining <norbert@preining.info> | 2019-10-29 03:00:39 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-10-29 03:00:39 +0000 |
commit | 97f5151099967e6c823d640a90d87bca92c44035 (patch) | |
tree | 685caa49488599f87d0caa4e972833b2263d8567 /dviware/dvisvgm/src/StreamReader.hpp | |
parent | 25a647b97ef526aefcc75269dd19c46dbe3ae4c1 (diff) |
CTAN sync 201910290300
Diffstat (limited to 'dviware/dvisvgm/src/StreamReader.hpp')
-rw-r--r-- | dviware/dvisvgm/src/StreamReader.hpp | 16 |
1 files changed, 8 insertions, 8 deletions
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 <vector> #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<uint8_t>& readBytes (int n, std::vector<uint8_t> &bytes); - std::vector<uint8_t>& readBytes (int n, std::vector<uint8_t> &bytes, CRC32 &crc32); + std::string readString (int length, HashFunction &hashfunc); + std::vector<uint8_t> readBytes (int n); + std::vector<uint8_t> 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();} |