Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 848 Bytes

Structs & Arrays.md

File metadata and controls

23 lines (19 loc) · 848 Bytes

Storage Layout & Structs/Arrays: 

  1. Structs and array data always start a new slot and their items are packed tightly according to these rules

  2. Items following struct or array data always start a new storage slot

  3. The elements of structs and arrays are stored after each other, just as if they were given as individual values.


Slide Screenshot

117.jpg


Slide Text

  • Structs & Arrays Storage Rules
  • Structs & Arrays -> Start New Storage Slot
  • Following Items -> Start New Storage Slot
  • Elements -> Contiguous Individual Values

References


Tags