Guillaume Laurent wrote:
> On Monday 04 August 2003 13:15, Chris Cannam wrote:
> 
>>even when it's empty its length is still streamed.  So I don't see
>>how MappedEvent::streamedSize is ever correct...?
> 
> Wooops, it should be 12 * sizeof(uint), yes. I've committed the fix.

Long term, I can't help thinking it'd be both more reliable and
more efficient just to use sizeof(MappedEvent), copy MappedEvents
into the shared-memory area using memcpy() (or operator=, or
placement new, or whatever) and forget about QByteStream and the
operator<< stuff altogether for everything except DCOP.

Call me old-fashioned and all.


Chris



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Rosegarden-devel mailing list
[EMAIL PROTECTED] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to