I have some records with a whole lot of Unique ID's stored. The max now is
like 200+. My record structure looks like this
typedef struct FooType {
UInt32 a[50]
UInt32 b[50]
...
}FooType
What I would like to do in order to save space is pack the UInt32's in a
similar fashion to what most apps do to pack character strings. So that
would make my struct look like this
typedef struct PackedFooType {
UInt16 numAs;
UInt16 numBs;
...
UInt32* records;
} PackedFooType
Has anyone done this already? If so could you post your packing and
unpacking code? I'm afraid that the alignment of the memory will cause
problems. Thanks.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/