TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: LEE KIRBY
from: PETER HAYWOOD
date: 1998-01-24 01:43:00
subject: Re: Extra bytes

Groovy hepcat Lee Kirby jived with All on 23 Dec 97  16:57:42!
Extra bytes's a cool scene. Dig it!
 LK> I'm very new to C++, and can't figure out why I get two extra bytes
 LK> when I write this structure to a file: 
  Structures can be "padded" with extra bytes for allignment purposes.
When you define a structure, there's no guarantee that the compiler
will "pack" it, ie. cause all members to be contiguous within the
structure. Some data types are more efficient if alligned to word or
double word boundaries. This depends on both the platform and the data
type.
                                                  Wolvaen
... All reality is aspect dependent.
--- Blue Wave/RA v2.20
---------------
* Origin: The Gate, Melbourne Australia, +61-3-9809-5097 33.6k (3:633/159)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.