Hi,
I have used the below function by Erel for some time in B4J from another case:
B4r bit object does not have the "ArrayCopy" method so it won't build. Any workaround?
thanks!
I have used the below function by Erel for some time in B4J from another case:
B4X:
Sub StringToUnsignedInt (Str As String) As Long
Dim converter As ByteConverter
Dim a(8) As Byte
Dim i() As Byte = converter.HexToBytes(Str)
Bit.ArrayCopy(i, 0, a, 4, 4)
Dim ll() As Long = converter.LongsFromBytes(a)
Return ll(0)
End Sub
B4r bit object does not have the "ArrayCopy" method so it won't build. Any workaround?
thanks!