Andrew Geissler | 5f35090 | 2021-07-23 13:09:54 -0400 | [diff] [blame] | 1 | # |
2 | # SPDX-License-Identifier: GPL-2.0-only | ||||
3 | # | ||||
4 | |||||
5 | import bb.compress._pipecompress | ||||
6 | |||||
7 | |||||
8 | def open(*args, **kwargs): | ||||
9 | return bb.compress._pipecompress.open_wrap(LZ4File, *args, **kwargs) | ||||
10 | |||||
11 | |||||
12 | class LZ4File(bb.compress._pipecompress.PipeFile): | ||||
13 | def get_compress(self): | ||||
14 | return ["lz4c", "-z", "-c"] | ||||
15 | |||||
16 | def get_decompress(self): | ||||
17 | return ["lz4c", "-d", "-c"] |