Re: [Evolution-hackers] CamelStreamMem ==> CamelStream ?



On Thu, 2006-11-16 at 21:46 +0530, Srinivasa Ragavan wrote:
> On Thu, 2006-11-16 at 15:10 +0100, Jules Colding wrote:
> > Hi,
> > 
> > I'm looking for an easy way to transfer the content of a CamelStreamMem
> > to a CamelStream without having a duplicate of the content around. Does
> > anyone know a non-hackish(*) way to do that?
> You can use CamelStreamMem as CamelStream directly. 

Yes, but the API is:

CamelStream *camel_data_cache_add()

So I need a way to move to content of a preexisting CamelStreamMem over
to the stream that was returned by camel_data_cache_add() and I like to
do that without copying any memory.

-- 
  jules





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]