[prev] 84 [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
-------------------------------------------------
|            27 |             7 |           2017|   12 bytes
-------------------------------------------------
|            20 |            45 |                    8 bytes
---------------------------------

 

Note: padding is needed to ensure that plate lies on a 4-byte boundary.

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