aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-10-13 19:29:44 +0200
committerStefan Boberg <[email protected]>2021-10-13 19:29:44 +0200
commita438adb47ad786f2e2b32055442351e32d859831 (patch)
tree790a98eecb66e789e1da48b860e5c7ec8c044272 /zencore/include
parentstructuredcache: add code to handle conflict which can occur when multiple PU... (diff)
parentAdded support for decompressing from offset. (diff)
downloadzen-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.h6
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.