I found the following link to be useful for my own understanding of how structs are arranged in memory: Struct declaration - cppreference.com