diff options
| author | Per Larsson <[email protected]> | 2021-10-13 11:41:18 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-13 11:41:18 +0200 |
| commit | 738e245fb3403a425d658ce11204210ea83cacdc (patch) | |
| tree | ce5b193e9bda29bd00be0d62088e0236a4c39659 /zencore/include | |
| parent | Ratios should not be percentages (this should be done in presentation) (diff) | |
| download | zen-738e245fb3403a425d658ce11204210ea83cacdc.tar.xz zen-738e245fb3403a425d658ce11204210ea83cacdc.zip | |
Added support for decompressing from offset.
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. |