If I have a
i, how would I get the most and least significant bytes (big endian) using division (not shifting as it needs to work on iOS)?
Var i As UInt16 = 500 Var msb, lsb As UInt8 // What's the math?
For extra credit, how would one do the reverse. That is, given a most significant and least significant byte, get the
Var msb As UInt8 = 10 Var lsb As UInt8 = 67 Var i As UInt16 = BytesToUInt16(msb, lsb) // ?