diff options
| author | Stefan Boberg <[email protected]> | 2021-10-13 19:29:44 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-10-13 19:29:44 +0200 |
| commit | a438adb47ad786f2e2b32055442351e32d859831 (patch) | |
| tree | 790a98eecb66e789e1da48b860e5c7ec8c044272 /zencore/include | |
| parent | structuredcache: add code to handle conflict which can occur when multiple PU... (diff) | |
| parent | Added support for decompressing from offset. (diff) | |
| download | zen-a438adb47ad786f2e2b32055442351e32d859831.tar.xz zen-a438adb47ad786f2e2b32055442351e32d859831.zip | |
Merge branch 'main' of https://github.com/EpicGames/zen
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/compress.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zencore/include/zencore/compress.h b/zencore/include/zencore/compress.h index 6a65071d3..426b4981a 100644 --- a/zencore/include/zencore/compress.h +++ b/zencore/include/zencore/compress.h @@ -118,16 +118,16 @@ public: OodleCompressionLevel& OutCompressionLevel) const; /** - * Decompress into a memory view that is exactly GetRawSize() bytes. + * Decompress into a memory view that is less or equal GetRawSize() bytes. */ - [[nodiscard]] ZENCORE_API bool TryDecompressTo(MutableMemoryView RawView) const; + [[nodiscard]] ZENCORE_API bool TryDecompressTo(MutableMemoryView RawView, uint64_t RawOffset = 0) const; /** * Decompress into an owned buffer. * * @return An owned buffer containing the raw data, or null on error. */ - [[nodiscard]] ZENCORE_API SharedBuffer Decompress() const; + [[nodiscard]] ZENCORE_API SharedBuffer Decompress(uint64_t RawOffset = 0, uint64_t RawSize = ~uint64_t(0)) const; /** * Decompress into an owned composite buffer. |