| 1 | module lz |
| 2 | |
| 3 | const lzjb_profile = MatchProfile{ |
| 4 | window: 1024 |
| 5 | min_match: 3 |
| 6 | max_match: 66 |
| 7 | max_literal: 128 |
| 8 | } |
| 9 | |
| 10 | // compress_lzjb compresses data using a pure-V LZJB-like stream. |
| 11 | pub fn compress_lzjb(data []u8) ![]u8 { |
| 12 | return compress_with_profile(data, lzjb_profile, .lzjb) |
| 13 | } |
| 14 | |
| 15 | // decompress_lzjb decompresses data produced by compress_lzjb. |
| 16 | pub fn decompress_lzjb(data []u8) ![]u8 { |
| 17 | return decompress_with_profile(data, lzjb_profile, .lzjb) |
| 18 | } |
| 19 |