restore decompress to be const

This commit is contained in:
jinjunzh 2022-07-06 18:34:31 -04:00
parent 567f90d8a4
commit 7b262b62c2
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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
{