blob: 0f6bc51a5b081cbd81aa392763d75a1e59325244 [file] [log] [blame]
Andrew Geissler5f350902021-07-23 13:09:54 -04001#
2# SPDX-License-Identifier: GPL-2.0-only
3#
4
5import bb.compress._pipecompress
6
7
8def open(*args, **kwargs):
9 return bb.compress._pipecompress.open_wrap(LZ4File, *args, **kwargs)
10
11
12class 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"]