Initial project import

This commit is contained in:
Agila Forge Importer committed 2026-07-13 15:20:32 +00:00
commit 23f2d29e32
11957 files changed
+1754577

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
module lz
const lzma2_profile = MatchProfile{
window: 65535
min_match: 3
max_match: 130
max_literal: 128
}
// compress_lzma2 compresses data using a pure-V LZMA2-like stream.
pub fn compress_lzma2(data []u8) ![]u8 {
return compress_with_profile(data, lzma2_profile, .lzma2)
}
// decompress_lzma2 decompresses data produced by compress_lzma2.
pub fn decompress_lzma2(data []u8) ![]u8 {
return decompress_with_profile(data, lzma2_profile, .lzma2)
}