Re: struct.calcsize problem

2005-11-09 Thread Chandu
Thanks for the helpful feedback. I guessed it was the alignment issue, but could not find the exact format for changing the default. It is not mystery any more! Bengt Richter wrote: > On 7 Nov 2005 15:27:06 -0800, "Chandu" <[EMAIL PROTECTED]> wrote: > > >In using the following struct format I get t

Re: struct.calcsize problem

2005-11-07 Thread Bengt Richter
On 7 Nov 2005 15:27:06 -0800, "Chandu" <[EMAIL PROTECTED]> wrote: >In using the following struct format I get the size as 593. The same C >struct is 590 if packed on byte boundary and 596 when using pragma >pack(4). I am using pack(4) and added 3 spares at the end to get by. > hdrFormat = '16s 3

Re: struct.calcsize problem

2005-11-07 Thread Larry Bates
Chandu wrote: > In using the following struct format I get the size as 593. The same C > struct is 590 if packed on byte boundary and 596 when using pragma > pack(4). I am using pack(4) and added 3 spares at the end to get by. >hdrFormat = '16s 32s 32s B 8s H 8s H 4s H H 20s 64s 64s 64s 32s 32s

struct.calcsize problem

2005-11-07 Thread Chandu
In using the following struct format I get the size as 593. The same C struct is 590 if packed on byte boundary and 596 when using pragma pack(4). I am using pack(4) and added 3 spares at the end to get by. hdrFormat = '16s 32s 32s B 8s H 8s H 4s H H 20s 64s 64s 64s 32s 32s 64s L L B B B B B 64s