Skip to content

NobodyNada/lznint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lznint

A library for compressing and decompressing data using the LZ-based compression format used by Nintendo in Super Metroid.

Example

let input = [0x1, 0x2, 0x3, 0x4, 0x1, 0x2, 0x3, 0x4];

let compressed = lznint::compress(&input);
println!("{:x?}", compressed);  // [63, 1, c3, 4, ff]

let decompressed = lznint::decompress(&compressed).expect("Decompressino failed");
assert_eq!(&decompressed, &input);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages