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.

-Jose

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:37 GMT