Closed moien007 closed 3 years ago
It returns zero because there is insufficient space in the output buffer to store the result. Compression algorithms are never guaranteed to always make data smaller, especially when the data to be compressed is smaller and not very repetitive in the first place.
Is there any function like enet_range_coder_compress
but doing decompress instead of compress?
@RealYukiSan Yes, it's called enet_range_coder_decompress
. :-)
enet_range_coder_compress() always returns zero.
The following code reproduces the problem (assertion fails).