mirror of
https://github.com/exoticorn/upkr.git
synced 2026-01-20 11:36:42 +01:00
first version, only very simple greedy packer
This commit is contained in:
16
src/main.rs
Normal file
16
src/main.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
mod context_state;
|
||||
mod greedy_packer;
|
||||
mod lz;
|
||||
mod match_finder;
|
||||
mod range_coder;
|
||||
|
||||
fn main() {
|
||||
let test_data = include_bytes!("../testcases/skipahead.wasm");
|
||||
|
||||
let packed = greedy_packer::pack(test_data);
|
||||
dbg!((test_data.len(), packed.len()));
|
||||
|
||||
let unpacked = lz::unpack(&packed);
|
||||
dbg!(unpacked.len());
|
||||
assert!(test_data == unpacked.as_slice());
|
||||
}
|
||||
Reference in New Issue
Block a user