1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:27:35 +00:00

LibCompress: Turn the DEFLATE implementation into a stream.

Previously, the implementation would produce one Vector<u8> which
would contain the whole decompressed data. That can be a lot and
even exhaust memory.

With these changes it is still necessary to store the whole input data
in one piece (I am working on this next,) but the output can be read
block by block. (That's not optimal either because blocks can be
arbitrarily large, but it's good for now.)
This commit is contained in:
asynts 2020-08-18 20:49:59 +02:00 committed by Andreas Kling
parent 30abadcff9
commit 8bbb7e25e6
7 changed files with 187 additions and 74 deletions

View file

@ -49,4 +49,5 @@ private:
ReadonlyBytes m_input_data;
ReadonlyBytes m_data_bytes;
};
}