|
Boost : |
From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2020-03-10 16:49:18
On Tue, Mar 10, 2020 at 1:31 AM Domen Vrankar <domen.vrankar_at_[hidden]> wrote:
> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk