Hacker News new | ask | show | jobs
by wolf550e 1608 days ago
I believe you can compress into the source buffer and keep the read offset ahead of the write offset, but I don't think you can decompress this way.
1 comments

This is about the window buffer, not the source and destination buffers. They are still distinct, but you can combine the uncompressed buffer and the window buffer, if you have, or are going to have, the entire uncompressed data in memory.