Re: Creating a chunk from an allocated buffer

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 UTC