Support for uncompressed packets is not really an optional feature; failure to support uncompressed packets means that minlzdec
fails to perform as expected depending on a feature of the original uncompressed file.
$ rm testnoise*
$ (perl -e 'print("This is a test file.\n" x 40)'; dd if=/dev/urandom bs=512 count=1; perl -e 'print("This is a test file.\n" x 40)';) > testnoise
1+0 records in
1+0 records out
512 bytes transferred in 0.000082 secs (6242685 bytes/sec)
$ shasum -a 256 -b testnoise
76dddc82b3e6f1eb29cdb88955f920fe5bb120bba9dcdc9ae49c0ced23fcfa9a *testnoise
$ xz -C crc32 testnoise
$ ls testnoise*
testnoise.xz
$ minlzdec/minlzdec testnoise.xz testnoise
minlzdec v.1.0.5 -- http://ionescu007.github.io/minlzma
Copyright(c) 2020 Alex Ionescu (@aionescu)
Input file size: 628
Decompressed file will be 2192 bytes (0.286496% ratio)
Decompressed 2192 bytes
$ shasum -a 256 -b testnoise
76dddc82b3e6f1eb29cdb88955f920fe5bb120bba9dcdc9ae49c0ced23fcfa9a *testnoise
$ rm testnoise*
$ (perl -e 'print("This is a test file.\n" x 40)'; dd if=/dev/urandom bs=512 count=800; perl -e 'print("This is a test file.\n" x 40)';) > testnoise
800+0 records in
800+0 records out
409600 bytes transferred in 0.019239 secs (21290144 bytes/sec)
$ shasum -a 256 -b testnoise
e3ec02171cc7ff79912d5a7574ec339095fdf44bebdff76f395e45cebf6f827c *testnoise
$ xz -C crc32 testnoise
$ ls testnoise*
testnoise.xz
$ minlzdec/minlzdec testnoise.xz testnoise
minlzdec v.1.0.5 -- http://ionescu007.github.io/minlzma
Copyright(c) 2020 Alex Ionescu (@aionescu)
Input file size: 411168
Decoding failed after 0 bytes
$ shasum -a 256 -b testnoise
shasum: testnoise: