Byte Ptr

BlitzMax Forums/BlitzMax Beginners Area/Byte Ptr

Not the same.

The first line is converting the `myrect ptr` into a byte pointer - giving you an address of the first byte of that instance of RECT.

The second line is giving you the pointer to the first byte of the first field within that instance.

You might assume they are the same, they're probably not, I think Max has some other data stored at the beginning of a type instance, so the variables do not begin at 0 offset from the type's location. Or i could be wrong.