diff options
author | Norbert Preining <norbert@preining.info> | 2020-08-14 03:01:08 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-08-14 03:01:08 +0000 |
commit | 02ead80143e7082dee86522ac65a59443428bd7b (patch) | |
tree | 6fe247a83c87fefdd010c5820025b760ebdd3d94 /dviware/dvisvgm/src/FontCache.cpp | |
parent | 1163ada9c470777f1cd48cfc16ffa9c26758827e (diff) |
CTAN sync 202008140301
Diffstat (limited to 'dviware/dvisvgm/src/FontCache.cpp')
-rw-r--r-- | dviware/dvisvgm/src/FontCache.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dviware/dvisvgm/src/FontCache.cpp b/dviware/dvisvgm/src/FontCache.cpp index e024558913..1fd13c9c11 100644 --- a/dviware/dvisvgm/src/FontCache.cpp +++ b/dviware/dvisvgm/src/FontCache.cpp @@ -160,7 +160,7 @@ bool FontCache::write (const string &fontname, ostream &os) const { XXH32HashFunction hashfunc; sw.writeUnsigned(FORMAT_VERSION, 1, hashfunc); - sw.writeBytes(hashfunc.digestValue()); // space for checksum + sw.writeBytes(hashfunc.digestBytes()); // space for checksum sw.writeString(fontname, hashfunc, true); sw.writeUnsigned(_glyphs.size(), 4, hashfunc); WriteActions actions(sw, hashfunc); @@ -171,7 +171,7 @@ bool FontCache::write (const string &fontname, ostream &os) const { glyph.iterate(actions, false); } os.seekp(1); - auto digest = hashfunc.digestValue(); + auto digest = hashfunc.digestBytes(); sw.writeBytes(digest); // insert checksum os.seekp(0, ios::end); return true; @@ -215,7 +215,7 @@ bool FontCache::read (const string &fontname, istream &is) { auto hashcmp = sr.readBytes(hashfunc.digestSize()); hashfunc.update(is); - if (hashfunc.digestValue() != hashcmp) + if (hashfunc.digestBytes() != hashcmp) return false; is.clear(); @@ -309,7 +309,7 @@ bool FontCache::fontinfo (std::istream &is, FontInfo &info) { info.checksum = sr.readBytes(hashfunc.digestSize()); hashfunc.update(is); - if (hashfunc.digestValue() != info.checksum) + if (hashfunc.digestBytes() != info.checksum) return false; is.clear(); |