The deflate package is a translation of the Go code of the compress/flate package from https://go.googlesource.com/go/+/refs/tags/go1.17/src/compress/flate/

Functions

fn compressor(allocator: Allocator, writer: anytype, options: CompressorOptions) !Compressor(@TypeOf(writer))

No documentation provided.

fn copy(dst: []u8, src: []const u8) usize

Copies elements from a source src slice into a destination dst slice. The c…

Copies elements from a source src slice into a destination dst slice. The copy never returns an error but might not be complete if the destination is too small. Returns the number of elements copied, which will be the minimum of src.len and dst.len. TODO: remove this smelly function

fn decompressor(allocator: Allocator, reader: anytype, dictionary: ?[]const u8) !Decompressor(@TypeOf(reader))

No documentation provided.