Skip to content

๐Ÿ—œ๏ธ A library for compressing and decompressing the GDeflate format ๐Ÿฆ€

License

Notifications You must be signed in to change notification settings

ProjectKML/gdeflate-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

39 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ—œ๏ธ gdeflate-rs

A library for compressing and decompressing the GDeflate format ๐Ÿฆ€

crates license dependency-status

[dependencies]
gdeflate = "0.3.0"

Use the compress and decompress functions to compress and decompress data.

use gdeflate::{CompressionLevel, Compressor, Decompressor};

let uncompressed_data = vec![0, 1, 2]; // your input data

let mut compressor = Compressor::new(CompressionLevel::Level12).unwrap();
let result = compressor.compress(&uncompressed_data, 65536).unwrap();

let mut decompressor = Decompressor::new().unwrap();
let reconstructed_data = decompressor.decompress(&result).unwrap();

assert_eq!(&uncompressed_data, &reconstructed_data);

๐Ÿšจ Warning ๐Ÿšจ

This library is still experimental and only supports single-threaded compression and decompression at the moment.

About

๐Ÿ—œ๏ธ A library for compressing and decompressing the GDeflate format ๐Ÿฆ€

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages