i'm going from as3 and trying to make this cross platform.
this is the type of thing in AS3 that makes me want to use Bytes in haxe...
// packed fields
out.writeByte((0x80 | // 1 : global color table flag = 1 (gct used)
0x70 | // 2-4 : color resolution = 7
0x00 | // 5 : gct sort flag = 0
palSize)); // 6-8 : gct size
out.writeByte(0); // background color index
out.writeByte(0); // pixel aspect ratio - assume 1:1
if out becomes Bytes, can this be translated as...
// packed fields
out.set((0x80 | // 1 : global color table flag = 1 (gct used)
0x70 | // 2-4 : color resolution = 7
0x00 | // 5 : gct sort flag = 0
palSize, out.length)); // 6-8 : gct size
out.set(0, out.length); // background color index
out.set(0, out.length); // pixel aspect ratio - assume 1:1
or am i really badly getting this wrong :P