W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2000

Re: Creating a chunk from an allocated buffer

From: <jose.kahan@w3.org>
Date: Fri, 1 Sep 2000 15:59:08 +0200 (MET DST)
Message-Id: <200009011359.PAA13947@tuvalu.inrialpes.fr>
To: Wayne Davison <wayned@users.sourceforge.net>
CC: www-lib <www-lib@w3.org>
Thanks Wayne,

I commited your patch. Note that in order to avoid conflicts, the
buffer must be allocated with libwww's dedicated memory functions. This
is because HTChunk_delete will free the buffer's memory.


In our previous episode, Wayne Davison said:
> I to be able to transfer some allocated memory to a chunk (to be able to
> hand off an ImageMagick blob) without having to allocate more memory, copy
> it into the blob, and then delete the original.  To handle this, I wrote
> HTChunk_fromBuffer().  Here's a patch.  I hope you like it.
> Also, I improved a comment in HTChunk.html so that it is clearer what
> gets destroyed when HTChunk_toCString() is called.
Received on Friday, 1 September 2000 09:59:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:53 UTC