Here is how it is handled in rtp, maybe it is good enough for other
containers
count: number of headers to be stored
size(a): size in byte of a
headers[b]: b'nth header
Nutesque syntax
count-1 v
for (i=0; i<count-1; i++)
size(headers[i]) v
for (i=0; i<count; i++)
headers[i]
lu
--
Luca Barbato
Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero