▲ | latch 3 days ago | |||||||||||||||||||||||||||||||
Then in the top-most snippet, what size should `buffer` be? | ||||||||||||||||||||||||||||||||
▲ | jmull 3 days ago | parent [-] | |||||||||||||||||||||||||||||||
It shouldn't matter. Decompress's Reader shouldn't depend on the size of the buffer of the writer passed in to its "stream" implementation. So that's a bug in the Decompress Reader implementation. The article confuses a bug in a specific Reader implementation with a problem with the Writer interface generally. (If a reader really wants to impose some chunking limitation for some reason, then it should return an error in the invalid case, not go into an infinite loop.) | ||||||||||||||||||||||||||||||||
|