Closed florianerhard closed 8 years ago
Problem solved, it was my fault... it has to be
decomp.decompress(c, 0,b, 0, b.length);
in the last line... stupid me!
I have one query. If I have only one compressed byte array and I want to decompress it and formed decompressed byte array but I don't know the size of decompress byte array. How should I provide such a implementation?
When processing the attached file with the following code, I get an LZ4Exception from
decomp.decompress(c, 0,b, 0, l)
. Am I doing something wrong or is it a bug? Btw. this works fine for thousands of other byte arrays...It does not matter which compressor/decompressor I use. I tested it with the latest version from github (b69d567) as well as the latest release from Maven (1.3.0).
The exception from the safe decompressor is:
test.txt