No description
Find a file
2025-08-23 13:10:48 -04:00
bzip2 fix bzip2 that missed a few no-std items 2025-08-22 20:47:46 -04:00
src fix doc module comment 2025-08-22 22:01:22 -04:00
.gitignore init 2025-08-14 22:50:04 -04:00
build.zig remove libc linking since it is not used and we would have catched the previous bug faster if it wasnt 2025-08-22 20:54:02 -04:00
build.zig.zon add missing bzip2 path. bump version 2025-08-23 13:10:48 -04:00
Jenkinsfile add jenkinsfile 2025-08-22 19:15:45 -04:00
LICENSE cleanup build.zig, add license, add readme, add missing bz_internal_error function, enable nostd option of bzip2 2025-08-22 19:13:06 -04:00
README.md cleanup build.zig, add license, add readme, add missing bz_internal_error function, enable nostd option of bzip2 2025-08-22 19:13:06 -04:00

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.