mirror of
https://github.com/exoticorn/microw8.git
synced 2026-01-20 19:26:43 +01:00
16 lines
349 B
Rust
16 lines
349 B
Rust
mod base_module;
|
|
mod filter_exports;
|
|
mod pack;
|
|
|
|
pub use base_module::BaseModule;
|
|
pub use filter_exports::filter_exports;
|
|
pub use pack::{pack, pack_file, unpack, unpack_file, PackConfig};
|
|
|
|
pub fn compressed_size(cart: &[u8]) -> f32 {
|
|
if cart[0] != 2 {
|
|
cart.len() as f32
|
|
} else {
|
|
upkr::compressed_size(&cart[1..]) + 1.
|
|
}
|
|
}
|