Externs and Byte Ptr

BlitzMax Forums/BlitzMax Programming/Externs and Byte Ptr

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.

Is Byte pointer the normal thing you use when you point to a Type

Byte Ptr is what I use all the time for referring to a point in memory for structs and the likes.
If it happened to be an array of Ints, you could refer to it either by a Byte Ptr, or more usefully as an Int Ptr, with which you could then do something like - i = Int Ptr(mypointer)[0] - to get the first integer in the array.

Byte Ptr is just convenient.

If you need the real address you can cast it to Int - Int(myPtr).