Comments (3)
This should probably be a wrapper around AsyncRead
instead, right?
from async-compression.
I suppose it could be, although I originally went off of @Nemo157's original design -- which was that the associated reader for a given AsyncBufRead
encoder/decoder would be a type of AsyncBufRead
. Though I don't imagine it'd take too long to refactor this, I wonder what he thinks.
from async-compression.
Adding AsyncRead
support would be pretty trivial, just wrap the incoming AsyncRead
into a BufReader
so that it supports AsyncBufRead
. Since the en/decoders operate on in-memory buffers you need some kind of buffering reader.
from async-compression.
Related Issues (20)
- Way to finish compression without closing/shutdown of the underlying `AsyncWrite` HOT 1
- Test WASM support in CI HOT 5
- Is "lzip" (.lz) supported? HOT 1
- proposal: Export codec and `Encode`/`Decode` trait HOT 8
- GzipDecoder read_lines terminated early, but fixes on deleting an empty line?! HOT 2
- Encoder does not support intermediate flushes before the reader has ended HOT 11
- zstd encoder default level says 0, while it's usually 3 HOT 1
- BrotliDecoder type is very large HOT 2
- Brotli compression performace HOT 7
- GzipDecoder chokes on extra headers HOT 2
- not all ZStd compression levels are usable HOT 4
- Is it possible to remove dependency on tokio? HOT 2
- `GzipDecoder` panics with "Write after end of stream" on bad data HOT 3
- Project Status HOT 20
- zstd compression produces unreadable file HOT 2
- with_quality_and_params and ZStandard HOT 2
- deflate64 support
- Brotli encoder parameters HOT 2
- `ZstdEncoder` should not panic if `tokio::io::AsyncWrite::flush` is called after `tokio::io::AsyncWrite::shutdown` HOT 3
- Reuse zstd context for better perf
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from async-compression.