Skip to content

A pure rust implementation bound to the C version of minilzo.

License

Notifications You must be signed in to change notification settings

gmg137/minilzo-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minilzo-rs

A pure rust implementation bound to the C version of minilzo.

Crates.io Documentation License Actions Status

Functions

  • compress
  • decompress
  • adler32

Example

    // test compress
    let mut lzo = minilzo_rs::LZO::init().unwrap();
    let input = [0x00u8; 1024];
    let out = lzo.compress(&input).unwrap();

    // test decompress
    let input = lzo.decompress_safe(&out[..], 1024);
    let input = input.unwrap();
    assert_eq!(input.len(), 1024);

License

This project's source code and documentation is licensed under the GNU General Public License (GPL v3).

LZO itself is licensed under the terms of the GNU General Public License (GPL v2+).

About

A pure rust implementation bound to the C version of minilzo.

Resources

License

Stars

Watchers

Forks

Packages

No packages published