Closed lespea closed 4 years ago
I tried using the snappytool from the golang library and it appeared to work okay.
I literally can't do anything to help you if you don't share your code. In the future, when filling issues on open source projects, please try to make as much information available as possible. It is important for others to be able to reproduce your problem. If you don't share your code, then reproducing the problem is typically very difficult because it requires us maintainers to guess. Overall, it leads to a giant waste of time. So please just include the code from the start.
If possible, include the smallest amount of code possible that shows the problem.
I literally showed you how to recreate the issue in my code block... I'm not sure what else you need?
Just clone this repo and run this: RUST_BACKTRACE=1 cargo run --release --example decompress <data/Mark.Twain-Tom.Sawyer.txt.rawsnappy
Sorry, that wasn't at all clear to me.
On Wed, Feb 6, 2019, 11:05 Adam Lesperance <notifications@github.com wrote:
I literally showed you how to recreate the issue in my code block... I'm not sure what else you need?
Just clone this repo and run this: RUST_BACKTRACE=1 cargo run --release --example decompress <data/Mark.Twain-Tom.Sawyer.txt.rawsnappy
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BurntSushi/rust-snappy/issues/22#issuecomment-461079535, or mute the thread https://github.com/notifications/unsubscribe-auth/AAb34q47iQLSx-CaMJDAJ_fWsX54EiYxks5vKv1YgaJpZM4akyQc .
Np. I'll try to be more clear in future issues
This example use streamin protocol for decode data. The specified file is encoded without using a stream algorithm - https://github.com/google/snappy/blob/master/framing_format.txt First byte is not a 0xFF header marker for streamin
Yes, @bopohaa has it right. As the file extension suggests, the file is formatted as a raw snappy file. But the example you're using uses the Snappy frame format. You can either change the example to use the raw format, or use the szip
tool included in this repository:
$ szip -r -d < data/Mark.Twain-Tom.Sawyer.txt.rawsnappy
Maybe I'm doing something wrong but I get a StreamHeader panic when I try decompressing the test file.