How to get the Int value of a Byte Ptr ?
BlitzMax Forums/BlitzMax Programming/How to get the Int value of a Byte Ptr ?
| ||
I seem to have had a blonde moment over the weekend, and was simply unable to get an integer representation of a byte ptr... I have : Field handle:Byte Ptr How do I get the integer value of that pointer??? :-/ |
| ||
Like this?DebugLog Int(handle) |
| ||
If you are looking for the address of the byte pointer it's as so:global address:int address = varptr handle |
| ||
Int(handle).... it didn't occur to me to try casting it straight to an int... Thanks :-) |