Blitzmax *Supertips & Quirkies*

BlitzMax Forums/BlitzMax Programming/Blitzmax *Supertips & Quirkies*

Tom(Posted 2005) [#1]
This isn't something you might have come across unless working with C structs & max types, but it caused me a few hours of head scratching.

When working in C, the field data of an array of structs is sequential in memory. In Blitzmax this is not the case. Here's how you can get a 'C friendly' array of your Blitzmax type array data: