Android Question Bytes to long with byteconverter

bluedude

Well-Known Member
Licensed User
Longtime User
Hi,

I want to get from this 10cdc4d4a948 (hex) to this 18475956611400 (long).

Tried using below:

data = bc.HexToBytes ("10cdc4d4a948")
longID = bc.LongsFromBytes (data)

The longs from bytes array is zero, any suggestions?

Should actually be working, used it the other way around: long to bytes hexfrombytes. Missing something?
 

udg

Expert
Licensed User
Longtime User
Hi BlueDude,

according to ByteConverter library's documentation, function LongsFromBytes returns an array.
Specifically:
"Takes an array of Bytes and returns an array of Longs converted from that array."

udg
 
Upvote 0
Top