| 1 | module lz |
| 2 | |
| 3 | const lz77_profile = MatchProfile{ |
| 4 | window: 4096 |
| 5 | min_match: 3 |
| 6 | max_match: 130 |
| 7 | max_literal: 128 |
| 8 | } |
| 9 | |
| 10 | // compress_lz77 compresses data using a pure-V LZ77 style stream. |
| 11 | pub fn compress_lz77(data []u8) ![]u8 { |
| 12 | return compress_with_profile(data, lz77_profile, .lz77) |
| 13 | } |
| 14 | |
| 15 | // decompress_lz77 decompresses data produced by compress_lz77. |
| 16 | pub fn decompress_lz77(data []u8) ![]u8 { |
| 17 | return decompress_with_profile(data, lz77_profile, .lz77) |
| 18 | } |
| 19 |