Beja Expert Licensed User Longtime User Apr 7, 2014 #1 In byteconverter library.. this member: IntsFromBytes (bytes() As Byte) As Int() Takes an array of Bytes and returns an array of Ints converted from that array. I was expecting the result is a Hex value as promised, (not Integer) in other words: 26 a3 4e df should be 26, A3, 4E, DF, or 0x26, 0xA4.... etc. but not 38, 163....etc. otherwise the function should have named DecFromBytes. What do you think guys?
In byteconverter library.. this member: IntsFromBytes (bytes() As Byte) As Int() Takes an array of Bytes and returns an array of Ints converted from that array. I was expecting the result is a Hex value as promised, (not Integer) in other words: 26 a3 4e df should be 26, A3, 4E, DF, or 0x26, 0xA4.... etc. but not 38, 163....etc. otherwise the function should have named DecFromBytes. What do you think guys?
Erel B4X founder Staff member Licensed User Longtime User Apr 7, 2014 #2 Int is a number. You are talking about the string representation of a number. You should use HexFromBytes which returns a string. Upvote 0
Int is a number. You are talking about the string representation of a number. You should use HexFromBytes which returns a string.