BurntSushi / rust-snappy

Snappy compression implemented in Rust (including the Snappy frame format).
BSD 3-Clause "New" or "Revised" License
444 stars 43 forks source link

Write framedecoder #50

Open Icelk opened 2 years ago

Icelk commented 2 years ago

Fixes #48

This is initial code. I'll add more comments tomorrow.

Don't hesitate if anything looks out of place.

I wrote additional tests, so it's all covered.

Icelk commented 2 years ago

The code is ready. I copied the code from read::FrameDecoder and modified it to fit. It behaves exactly the same, backed up by tests.