From 7b262b62c24d090ee06af4adc6daf6f493320abe Mon Sep 17 00:00:00 2001 From: jinjunzh Date: Wed, 6 Jul 2022 18:34:31 -0400 Subject: [PATCH] restore decompress to be const --- src/Compression/ICompressionCodec.cpp | 2 +- src/Compression/ICompressionCodec.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Compression/ICompressionCodec.cpp b/src/Compression/ICompressionCodec.cpp index cde60cc6d34..5fbbd6bef8b 100644 --- a/src/Compression/ICompressionCodec.cpp +++ b/src/Compression/ICompressionCodec.cpp @@ -91,7 +91,7 @@ UInt32 ICompressionCodec::compress(const char * source, UInt32 source_size, char return header_size + compressed_bytes_written; } -UInt32 ICompressionCodec::decompress(const char * source, UInt32 source_size, char * dest) +UInt32 ICompressionCodec::decompress(const char * source, UInt32 source_size, char * dest) const { assert(source != nullptr && dest != nullptr); diff --git a/src/Compression/ICompressionCodec.h b/src/Compression/ICompressionCodec.h index 5c7eb5b235d..f536c643607 100644 --- a/src/Compression/ICompressionCodec.h +++ b/src/Compression/ICompressionCodec.h @@ -53,7 +53,7 @@ public: UInt32 compress(const char * source, UInt32 source_size, char * dest) const; /// Decompress bytes from compressed source to dest. Dest should preallocate memory; - UInt32 decompress(const char * source, UInt32 source_size, char * dest); + UInt32 decompress(const char * source, UInt32 source_size, char * dest) const; CodecMode getDecompressMode() const {