|
Boost Users : |
Subject: Re: [Boost-users] [serialization] deserializing chunk by chunk
From: Arash Abghari (arash.abghari_at_[hidden])
Date: 2013-01-02 11:51:15
On 31/12/12 08:17 AM, Jeff Flinn wrote:
>> I have an encrypted archive. I can decrypt the file chunk by chunk. I
>> wonder if there is a way to deserialize each chunk on the fly. The main
>> purpose is to reduce the memory footprint of the application since the
>> archive can be a few hundred mega bytes. The problem as I mentioned is
>> the file is encrypted and it has to be decrypted first in the memory and
>> then deserialized.
>
> Have you looked at boost iostreams library? You can create a filter to
> provide a decrypted stream which is then used by the input archive. See:
>
> http://www.boost.org/doc/libs/1_52_0/libs/iostreams/doc/index.html
>
> Jeff
I will try that.
Thanks,
Arash
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net