https://github.com/murphsicles/flate2
Gzip/deflate/zlib compression for Zeta — read/write streams, buffered
https://github.com/murphsicles/flate2
Last synced: 22 days ago
JSON representation
Gzip/deflate/zlib compression for Zeta — read/write streams, buffered
- Host: GitHub
- URL: https://github.com/murphsicles/flate2
- Owner: murphsicles
- License: mit
- Created: 2026-05-15T21:09:07.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-05-15T23:13:10.000Z (3 months ago)
- Last Synced: 2026-05-16T00:08:51.349Z (3 months ago)
- Size: 32.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @io/flate2 — Gzip/Deflate/Zlib Compression for Zeta
Auto-converted from [flate2](https://crates.io/crates/flate2) v1.1.9 via [Dark Factory](https://github.com/murphsicles/dark-factory).
## Features
| Format | Read | Write | BufRead |
|--------|------|-------|---------|
| **Gzip** | GzDecoder | GzEncoder | MultiGzDecoder |
| **Zlib** | ZlibDecoder | ZlibEncoder | — |
| **Deflate** | DeflateDecoder | DeflateEncoder | — |
All formats support streaming compression/decompression with configurable compression levels (0-9) and strategies.
## Usage
```zeta
let data = b"hello world";
let mut encoder = GzEncoder::new(data.as_slice(), Compression::default());
let mut compressed = Vec::new();
encoder.read_to_end(&mut compressed);
```
## Stats: ~4,655 lines across 21 source files, 0 unsupported items
## License
MIT