Array Pointers

BlitzMax Forums/BlitzMax Beginners Area/Array Pointers

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Yeah you're right.

Dlls usually use a pointer to the first element in the array, and increment the pointer to read through it. VarPtr(Array[0]) returns an int ptr (if your array is full of ints) - the other method returns a pointer to the entire array I guess so skips along in memory by the entire array length every time it is incremented - possibly generating a MAV.