PSeitz / lz4_flex

Fastest pure Rust implementation of LZ4 compression/decompression.
MIT License
441 stars 28 forks source link

Reader / Writer API #60

Closed Timmmm closed 1 year ago

Timmmm commented 1 year ago

It would be nice to have a Reader / Writer API to avoid having to read everything into memory. The C wrapper crate has this:

https://docs.rs/lz4/latest/lz4/struct.Decoder.html

PSeitz commented 1 year ago

lz4_flex also has that via the FrameDecoder and FrameEncoder. It's even mentioned in the first sentences of the docs https://docs.rs/lz4_flex/latest/lz4_flex/

Timmmm commented 1 year ago

Oh yeah totally missed that, sorry.