Re: MFC Porting Issues
Re: MFC Porting Issues
- Subject: Re: MFC Porting Issues
- From: Dave Camp <email@hidden>
- Date: Fri, 20 Jan 2006 13:21:24 -0800
On Jan 20, 2006, at 12:58 PM, Kevin Wojniak wrote:
Oops, yes WORD = unsigned short, sorry.
I'm not sure what you mean by structure packing..
typedef struct
{
BYTE b1[8];
DWORD height;
DWORD width;
WORD w1;
WORD bitDepth;
DWORD d2;
DWORD blockLen;
} IPOD_PICTURE_HEADER;
BYTE = unsigned char
DWORD = unsigned long
WORD = unsigned char
Structure packing is how the fields of a struct are laid out in
memory. For example, does the bitDepth field immediately follow the
w1 field, or is there two bytes of padding preceding it so that it
will be aligned on a 4 byte boundary. This is usually controlled by
compiler directives and different processors prefer different packing
schemes for efficiency.
Dave
---
The path of least resistance, it's not just for electricity any more.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden