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

uncompressed file size of high compressed file is wrong? #59

Open
serj-kzv opened this issue Apr 8, 2018 · 1 comment
Open

uncompressed file size of high compressed file is wrong? #59

serj-kzv opened this issue Apr 8, 2018 · 1 comment

Comments

@serj-kzv
Copy link

serj-kzv commented Apr 8, 2018

I use the code for a high compressed lz4 file

let uncompressedSize = LZ4.decodeBlock(file, uncompressedFile); // error, value is less than zero

but value is negative (below zero :) )
Is that error or I do something wrong?

File is compressed by liblz4-tool. I used ubuntu package.

sudo apt install liblz4-tool
lz4 -z -9 test.txt
@serj-kzv
Copy link
Author

serj-kzv commented Apr 8, 2018

UPD
I have to say that uncompressing itself works well. If I cut off last zeros manually instead of using uncompressedSize then all is fine. And file is uncompressed correctly.

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

No branches or pull requests

1 participant