117 - Structs & Arrays
Storage Layout & Structs/Arrays:
-
Structs and array data always start a new slot and their items are packed tightly according to these rules
-
Items following struct or array data always start a new storage slot
-
The elements of structs and arrays are stored after each other, just as if they were given as individual values.
- Structs & Arrays Storage Rules
- Structs & Arrays -> Start New Storage Slot
- Following Items -> Start New Storage Slot
- Elements -> Contiguous Individual Values