Skip to content

AnneKitsune/anne_bzip2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zig Bzip2

This is wrapper around the C bzip2 implementation, making it easier to use from zig.

Usage

Call these two functions:

fn compress(allocator: std.mem.Allocator, reader: *std.Io.Reader, writer: *std.Io.Writer, options: Bzip2StreamCompressor.Options) !usize;
fn decompress(allocator: std.mem.Allocator, reader: *std.Io.Reader, writer: *std.Io.Writer, options: Bzip2StreamDecompressor.Options) !usize;

They will take data from the reader and write it to the writer after compressing/decompressing.

For a more advanced usage (I'm not sure that would be ever required), see src/compressor.zig and src/decompressor.zig code documentation.

About

Bzip2 easily usable from zig!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 7