Guillaume Laurent wrote:
> [...] the QByteArray, like all sensible arrays, can overallocate and
> therefore get *larger* than the size of its actual data

Why would you assume that it was the same size, even if it didn't
overallocate?  Surely an array class would be likely to store some
information besides the individual elements, such as a count of
the number of elements?

Oh well.

The fix sounds fine to me, in that particular aspect.

More to the point, I don't get this bit: MappedEvent::streamedSize
allows for 11 unsigned ints, but a streamed MappedEvent actually
contains 12, plus the number of bytes in the data block.  Now
obviously the data block shouldn't be included in the stream as
it isn't of fixed size, and in most cases it's empty anyway, but
even when it's empty its length is still streamed.  So I don't see
how MappedEvent::streamedSize is ever correct...?


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