[prev] 77 [next]

Structures (cont)

Possible memory layout produced for TicketT object:

---------------------------------
| D | S | A | 4 | 2 | X | \0|   |    7 bytes + 1 padding
---------------------------------
|                          68.4 |    8 bytes
---------------------------------
|             2 |             6 |    8 bytes
---------------------------------
|            20 |            45 |    8 bytes
---------------------------------

 

Note: padding is needed to ensure that speed starts on an 8-byte block.

Don't normally care about internal layout, since fields are accessed by name.