TranscodingStreams.jl
TranscodingStreams.jl copied to clipboard
Add open for composed transcodingstreams
This allows users to easily chain codecs using the do-syntax. Here is an example where the input is chained through four different streams.
julia> using CodecZlib, TranscodingStreams
julia> open(
i -> first(read(i, String), 10),
GzipDecompressorStream ∘ NoopStream ∘ GzipCompressorStream ∘ NoopStream,
"Project.toml"
)
"name = \"Tr"
I'll add tests if anyone with the permission to merge gives me the thumbs-up :)
@jakobnissen If helpful and if you are interested, I can give you commit access here.
This still needs a test.
This still needs a test.
Agree.