1
If a decompression error (invalid or truncated Snappy block) or a framing error (Stream identifier (0xFF) frame invalid, unknown reserved unskippable chunk ([0x02, 0x7F]) frame encountered, checksum mismatch).
Snappy compression and decompression with and without framing
snappy {[-f]
[file]
>
snappy.sn | .sz}
snappy -d
[-i]
[file]
unsnappy [-i]
[file]
Without -d, compresses file (standard input stream if "-", the default) with Snappy to the standard output stream, then assesses the compression ratio achieved to the standard error stream.
With -f, the Snappy framing format is produced.
When run as unsnappy, or with -d, decompresses file (likewise) from Snappy, or the Snappy framing format (detected automatically), to the standard output stream.
With -i, decompression and framing errors are ignored and processing continues.
As a format limitation, if file isn't seekable when producing or decompressing unframed Snappy streams, it will be read into memory in its entirety.
1
If a decompression error (invalid or truncated Snappy block) or a framing error (Stream identifier (0xFF) frame invalid, unknown reserved unskippable chunk ([0x02, 0x7F]) frame encountered, checksum mismatch).
2
On an I/O error.
3
When compressing without -f and file is larger than 4GiB. (Output unaffected, but see BUGS.)
After compressing,
data: 2048576 -> 1099105 (53.65%)
means that the file data was 2048576 bytes, which were compressed down to 1099105 bytes, and the output is thus 53.65% the size.