lzfx icon indicating copy to clipboard operation
lzfx copied to clipboard

Getting decompressed length

Open GoogleCodeExporter opened this issue 10 years ago • 1 comments

The decompressed length is not being returned through the lzfx_decompress 
function. Instead it gave an LZFX_EARGS error. I used these parameters to call 
the function:
retrunValue = lzfx_decompress(compressed.data(), size, NULL, &estimated);
Notice the NULL, it is told in the documentation that this is a valid way to 
get the expected decompressed length of a compressed object.

I got it working by changing a line of code in the lzfx.cpp file.(line 248):
if(olen != 0) return LZFX_EARGS;
if(*olen != 0) return LZFX_EARGS;

Is this a bug? 
Am I using this the wrong way? If so please update the documentation.

Original issue reported on code.google.com by [email protected] on 9 Sep 2014 at 12:06

GoogleCodeExporter avatar Apr 16 '15 19:04 GoogleCodeExporter

Duplicate of #1

mirabilos avatar Aug 20 '21 00:08 mirabilos