Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,18 @@
|
||||
module lz
|
||||
|
||||
const lzma_profile = MatchProfile{
|
||||
window: 32768
|
||||
min_match: 3
|
||||
max_match: 130
|
||||
max_literal: 128
|
||||
}
|
||||
|
||||
// compress_lzma compresses data using a pure-V LZMA-like stream.
|
||||
pub fn compress_lzma(data []u8) ![]u8 {
|
||||
return compress_with_profile(data, lzma_profile, .lzma)
|
||||
}
|
||||
|
||||
// decompress_lzma decompresses data produced by compress_lzma.
|
||||
pub fn decompress_lzma(data []u8) ![]u8 {
|
||||
return decompress_with_profile(data, lzma_profile, .lzma)
|
||||
}
|
||||
Reference in new issue
Block a user