• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
decoding a struct
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: decoding a struct
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: Re: failed to compile for universal binary?
  • Next by Date: Re: decoding a struct
  • Previous by thread: Re: failed to compile for universal binary?
  • Next by thread: Re: decoding a struct
  • Index(es):
    • Date
    • Thread