COMPRESSION_TOOL(1) | General Commands Manual | COMPRESSION_TOOL(1) |
compression_tool
—
encode/decode files using the Compression
library.
compression_tool |
compression_tool -encode | -decode [-a algorithm] [-A algorithm] [-i input_file] [-o output_file] [-v] [-h] |
compression_tool
encodes (compresses), or
decodes (uncompresses) files using the Compression library.
-encode
-decode
--a algorithm
--A algorithm
--b block_size
--t thread_count
--i input_file
--o output_file
--v
--h
The file starts with a 4-byte header 'p','b','z',<algo>, where <algo> indicates the algorithm used to compress data. The header is followed by the 64-bit block size in bytes. Then for each block, we have 64-bit uncompressed size (will batch the block size, except possibly for the last block), 64-bit compressed size, and the compressed payload. If both uncompressed and compressed sizes for a block are equal, the payload is stored uncompressed. All 64-bit values are stored big-endian. Valid values for <algo> are: 'z' for zlib, 'x' for lzma, '4' for lz4, and 'e' for lzfse.