From: Laurent M. <lau...@fx...> - 2002-11-20 14:20:25
|
> Est-ce que qq'un sait s'il existe un impl=E9mentation plus ou moins stand= ard de bitbuffer > (mettre une suite de bit dans un stream, par exemple un fichier), avec de= s fonctions pratiques > pour pouvoir mettre aussi des type diverses et vari=E9s (int, float). >=20 > ok, c sans doute pas tr=E8s dur =E0 coder, juste c domage de r=E9invente= r la roue ... > Sinon, si vous avez des conseils d'impl=E9mentation/optimisation (entre a= utre pour utiliser les stream STL). D=E9sol=E9 j'ai rien de ca, ca m'=E9tonne que ca soit pas dans une lib genr= e Boost. N=E9anmoins, j'en ai cod=E9 un =E0 il y a 2 ans, pour un d=E9codeur de SWF (format shockwave). Et bon c'est pas tr=E8s dur, mais c'est assez lent; c'est interessant de voir les r=E8gles qu'ils ont au niveau du padding. Mais bon, c'est pas le sujet ;) Laurent, |