decoding a struct
decoding a struct
- Subject: decoding a struct
- From: "D. Walsh" <email@hidden>
- Date: Sun, 18 Dec 2005 03:51:00 -0500
- Mta-interface: amavisd-new-2.3.3 (20050822) at daleenterprise.com
I'm having an issue where I need to determine the contents of a
struct, how can I dump it do disk
It's a mixture of ints, chars in single and array form, I know what
the last 18 bytes are so decoding it would be fairly easy if I could
find a way to do it.
Here is the basic struct typedef.
typedef struct pngGraphStruct
{
unsigned char **pixels;
int sx;
int sy;
int colorsTotal;
int red[gdMaxColors];
int green[gdMaxColors];
int blue[gdMaxColors];
int open[gdMaxColors];
int transparent;
int *polyInts;
int polyAllocated;
struct pngGraphStruct *brush;
struct pngGraphStruct *tile;
int brushColorMap[gdMaxColors];
int tileColorMap[gdMaxColors];
int styleLength;
int stylePos;
int *style;
int interlace;
int thick;
int alpha[gdMaxColors];
int trueColor;
int **tpixels;
int alphaBlendingFlag;
int saveAlphaFlag;
int AA;
int AA_color;
int AA_dont_blend;
int cx1;
int cy1;
int cx2;
int cy2;
}
pngGraph;
typedef pngGraph *pngGraphPtr;
-- Dale
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden