Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting decompressed length #2

Open
GoogleCodeExporter opened this issue Apr 16, 2015 · 1 comment
Open

Getting decompressed length #2

GoogleCodeExporter opened this issue Apr 16, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 jonas-...@hotmail.com on 9 Sep 2014 at 12:06

@mirabilos
Copy link

Duplicate of #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants