> From: Alberto Monteiro <[EMAIL PROTECTED]>
> 
> Which language is _the simplest_ to program things like a binary
> file that packs things?
> 
> Something like the specification of a "graphic" file could
> be like:
> 
> 4 bytes for the header: AVFM
> 4 bytes (little endian) for the x dimension
> 4 bytes (little endian) for the y dimension
> (R,G,B) as 2 bytes big endian for each, from
> (x = 1, y = 1) to (x = 1, y = (max y)) etc.
> 
> And the "language" would translate this as:
> 
> byte[4] "AVFM"
> int4le maxx
> int4le maxy
> loop y = 1 to maxy
> loop x = 1 to maxx
> int2be R(x,y)
> int2be G(x,y)
> int2be B(x,y)
> end x
> end y
> 

C / C++.

Looks like a simple structure or class'l do ya.
_______________________________________________
http://www.mccmedia.com/mailman/listinfo/brin-l

Reply via email to