node-lz4 icon indicating copy to clipboard operation
node-lz4 copied to clipboard

uncompressed file size of high compressed file is wrong?

Open serj-kzv opened this issue 6 years ago • 1 comments

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 avatar Apr 08 '18 15:04 serj-kzv

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.

serj-kzv avatar Apr 08 '18 15:04 serj-kzv