diff options
| author | Martin Ridgers <[email protected]> | 2021-10-13 16:39:59 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-10-13 16:39:59 +0200 |
| commit | 9601ec69904a97ca6a9d6b0137691cc71cd531f1 (patch) | |
| tree | d3321331839743f9ef94202f5af153b20293e4a9 /zencore/include | |
| parent | Fixed shadowed symbol error in zenserver-test.cpp (diff) | |
| parent | Added support for decompressing from offset. (diff) | |
| download | zen-9601ec69904a97ca6a9d6b0137691cc71cd531f1.tar.xz zen-9601ec69904a97ca6a9d6b0137691cc71cd531f1.zip | |
Merged main
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. |