Re: [Evolution-hackers] CamelStreamMem ==> CamelStream ?
- From: Srinivasa Ragavan <sragavan novell com>
- To: Jules Colding <colding omesc com>
- Cc: Evolution Hackers <evolution-hackers gnome org>
- Subject: Re: [Evolution-hackers] CamelStreamMem ==> CamelStream ?
- Date: Thu, 16 Nov 2006 21:46:27 +0530
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. IIRC while reading
some code in em-format-html-display.c, I saw the CamelMemStream being
accessed as stream->buffer->data where as buffer is a GByteArray.
-Srini.
>
> What I want to accomplish is to read a structure from memory into a
> CamelStreamMem and then store it in a CamelDataCache.
>
> Maybe there is a better way to do this?
>
> Thanks,
> jules
>
>
> (*) Without accessing the private buffer member.
>
> _______________________________________________
> Evolution-hackers mailing list
> Evolution-hackers gnome org
> http://mail.gnome.org/mailman/listinfo/evolution-hackers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]