On Tue, 14 Jun 2005 14:24:56 -, Grant Edwards <[EMAIL PROTECTED]>
wrote:
>
>Your example is not using standard alignment. It's using
>native alignment:
>
>By default, C numbers are represented in the machine's native
>format and byte order, and properly aligned by skipping pad
>by
On 2005-06-14, Matt Feinstein <[EMAIL PROTECTED]> wrote:
> Using the 'struct' module (Win32, python version 2.4.1)--
>
> The library documentation says that 'no alignment is required
> for any type'.
Right. It says that for Standard alignment, and that's correct.
> However, struct.calcsize('fd'
Using the 'struct' module (Win32, python version 2.4.1)--
The library documentation says that 'no alignment is required for any
type'. However, struct.calcsize('fd') gives 16 while
struct.calcsize('df') gives 12, implying that double precision data
has to start on a double-word boundary.
Matt F