Florian Klaempfl wrote: > > The constant encoding the code page requires 2 bytes,
Could those become enum values instead, which means you can store up to 255 different code-page types in 1 byte. 255 should be sufficient to cover all available code-page constants (I think). Or couldn't that maybe be reduced to 6 bits for code page enum values, giving a total of 63 different values for code page types (still sufficient I think). And then the remaining 2 bits for element size. So total usage is still 1 byte. > require 2 bits only, but alignment issues waste the remaining 14 bit > anyways. Sorry, I'm a bit rusty on bit alignment issues. Any URL you can suggest where I could read further about this? Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/ _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel