Paul Davis wrote:
that doesn't solve the generic malloc problem (strings of arbitrary
size) but it does look attractive for the common case of fixed-size
events.
yes, and it would be less than a few hours to get it working.
the problem is that many of the interesting data types are variable
sized. MIDI is the most obvious.
For midi: wouldn't it be possible to allocate block of the upper bound-size.
I mean midi is constrained by the transfer-rate. Commands can be placed into
the buffer at the point in time when they should occure. Ofcourse they need to check
if the time-slot is still free and should use the next free one.
Stefan
--
\|/ Stefan Kost
<@ @> private business
+-oOO-(_)-OOo------------------------------------------------------ - - - - -
| __ Address Zwenkauer Str. 24 HTWK Leipzig, Fb IMN, Postfach 300066
| /// 04277 Leipzig 04277 Leipzig
| __ /// Germany Germany
| \\\/// Phone +49341 3910483 +49341 30766101
| \__/ EMail st_kost(a)gmx.net kost(a)imn.htwk-leipzig.de
| WWW
www.sonicpulse.de www.imn.htwk-leipzig.de/~kost/about.html
===-=-=--=---=---------------------------------- - - - - -