Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant