airlift / aircompressor

A port of Snappy, LZO, LZ4, and Zstandard to Java
Apache License 2.0
566 stars 112 forks source link

Add decompressor for LZO1X format #87

Closed luohao closed 6 years ago

luohao commented 6 years ago

The current LzoRawDecompressor doesn't decompress LZO1X data format. The command decoder decodes the match offset/length and literal length in a different way.

I wrote a Lzo1xRawDecompressor based on LzoRawdecompressor which decode the command following the C implementation in Linux kernel code.

I am not sure if I should overwrite the original LzoRawDecompressor and fix this issue in place, thus I put it in a separate file. If there's a better way to integrate this fix, I can update this PR.

@dain

luohao commented 6 years ago

Closing this PR. Will submit a new PR that fixes this issue.