
10 Mar
2020
10 Mar
'20
4:49 p.m.
On Tue, Mar 10, 2020 at 1:31 AM Domen Vrankar
You compress/decompress in chunks so all you need is a const std::span for input and std::span for output and call decompress on a for loop.
You need to know: 1. how much input was consumed 2. how much output was produced
...input iterator pair/range for input/output... ...std::istream_iterator... ...boost.spirit x3 parser... ...read->decompress->parse/process ... Whit iterators/ranges described above you wouldn't need to return std::size_t so return can be used for error codes instead.
It isn't clear what these things mean without seeing a function signature or class declaration. Thanks