Subject: Re: [boost] [gil io_new review] Reading images from in-memory sources
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2010-12-06 11:26:12
On 06/12/10 16:21, Kenny Riddile wrote:
> On 12/6/2010 10:10 AM, Christian Henning wrote:
>>> I accomplish this using Boost.IOStreams...something like this works
>>> for me:
>>> using namespace boost::iostreams;
>>> stream< array_source> bufferStream( buffer, size );
>>> read_image( bufferStream, dest, jpeg_tag() );
>> Cool this is what I was looking for. No extra copying involved?
> From the IOStreams documentation on array_source:
> "Model of Source providing read-only access to a sequence of characters
> in memory."
> doesn't sound like any copying to me :)
I'm afraid this is your interpretation.
This statement does not say anything about copying.
It only states read-only access is performed.
It is possible read-only access is performed against a copy of data.
p.s. Cut signatures, please.
-- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org Member of ACCU, http://accu.org
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk