diff options
Diffstat (limited to 'zencore')
| -rw-r--r-- | zencore/compress.cpp | 4 | ||||
| -rw-r--r-- | zencore/include/zencore/compress.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/zencore/compress.cpp b/zencore/compress.cpp index 6e06739ea..e89f02d68 100644 --- a/zencore/compress.cpp +++ b/zencore/compress.cpp @@ -939,10 +939,10 @@ CompressedBuffer::DecodeRawSize() const return CompressedData ? detail::BufferHeader::Read(CompressedData).TotalRawSize : 0; } -BLAKE3 +IoHash CompressedBuffer::DecodeRawHash() const { - return CompressedData ? detail::BufferHeader::Read(CompressedData).RawHash : BLAKE3(); + return CompressedData ? IoHash::FromBLAKE3(detail::BufferHeader::Read(CompressedData).RawHash) : IoHash(); } CompressedBuffer diff --git a/zencore/include/zencore/compress.h b/zencore/include/zencore/compress.h index 5bf6d3001..99ce20d8a 100644 --- a/zencore/include/zencore/compress.h +++ b/zencore/include/zencore/compress.h @@ -117,7 +117,7 @@ public: [[nodiscard]] ZENCORE_API uint64_t DecodeRawSize() const; /** Returns the hash of the raw data. Zero on error or if this is null. */ - [[nodiscard]] ZENCORE_API BLAKE3 DecodeRawHash() const; + [[nodiscard]] ZENCORE_API IoHash DecodeRawHash() const; [[nodiscard]] ZENCORE_API CompressedBuffer CopyRange(uint64_t RawOffset, uint64_t RawSize = ~uint64_t(0)) const; |