Re: BonoboStreamMem changes



> > 	  - If you pass in a buffer, it will use it rather than making
> > 	    an exact copy of it and using the copy.
> 
> Who is the owner of the buffer afterwards?  It seems that we either
> need to have a flag to specify the ownership.

The current behavior is:

	- The caller continues to own it if read_only is FALSE.
	- The stream takes ownership if read_only is TRUE.

I'm proposing changing it so the stream always takes ownership. If the
app doesn't want that, it can just pass a copy of the buffer.

-- Dan



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