Need help with BYTES

BlitzMax Forums/BlitzMax Programming/Need help with BYTES

To get an Int, you need to do something like :
' if you have a byte array
Print Int Ptr(Byte Ptr(bytes) + offset)[0]

' if you have a byte ptr
Int Ptr(byteptr + offset)[0]

Which should return you the contents of the 4 bytes from offset.

You can make a Byte Ptr from a Byte Array with
Local byteptr:Byte Ptr = bytes