Closed milesgranger closed 3 years ago
Think about what you're asking for: the total decompressed size of some set of bytes that was compressed as a stream. This is fundamentally impossible without consuming the entire stream.
More precisely, you're using a method from the raw
module, which specifically only works on the "raw" snappy format, on bytes encoded via the the "frame" snappy format. You might just be lucky that decompress_len
doesn't return an error in this particular case.
Happy Friday!
My question is regarding decompress_len Perhaps I'm using it wrong, but it gives an output significantly less than what the actual decompressed length is.
Given this:
estimated_decompress_len
ends up as895
but actual is270000000
I must be doing something wrong, appreciate any pointers. :-)