# compress: add a deflate compressor · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/490f067de82c8fd53029ddde0c73a242f4c04758)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 490f067de82c8fd53029ddde0c73a242f4c04758

Requested commit: 490f067de82c8fd53029ddde0c73a242f4c04758

Commit: 490f067de82c8fd53029ddde0c73a242f4c04758

Tree: 4edb14646e6cfecc2f79a336bc764593fdd8c164

Author: Hadrien Dorio

Committer: Hadrien Dorio

## Message

```
compress: add a deflate compressor

Replaces the inflate API from `inflateStream(reader: anytype, window_slice: []u8)` to
`decompressor(allocator: mem.Allocator, reader: anytype, dictionary: ?[]const u8)` and
`compressor(allocator: mem.Allocator, writer: anytype, options: CompressorOptions)`

```

## Parents

- [dba04a272aba81f3be4d3419f1392e2c5a7e5dfb](https://git.cafe/gitcafe/zig/commit/dba04a272aba81f3be4d3419f1392e2c5a7e5dfb?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/490f067de82c8fd53029ddde0c73a242f4c04758?format=markdown)
