B4R Question UintsFromBytes, reversed bytes order

Mostez

Well-Known Member
Licensed User
Longtime User
Hello,
I've got reversed bytes order (low-byte and high-byte) when I assign the return value of UintsFromBytes function to an Uint variable, i.e.

B4X:
Dim CurrentPageID As UInt
CurrentPageID = BC.UIntsFromBytes(DWIN_INCOMING_DATA)(0)
'CurrentPageID = 0x7800 instead of 0x0078

I logged DWIN_INCOMING_DATA to check data, it is correct '0x0078' but variable low, high bytes are reversed. Any ideas?

Thanks
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…