OH, if you are wanting to determine how endian-ness works in VB you could try something like:
(Use your values and try it out.)
Dim a() As Byte = { &H1C }
Dim b(3) As Byte
If BitConverter.IsLittleEndian Then
b(0) = a(0)
Else
b(3) = a(0)
End If
Dim key As Integer = BitConverter.ToInt32(b, 0)
Found at:
Change byte array to integer in VB.net - Stack Overflow[
^]
How about this?
Private Function BArrayToInt(ByRef bArray() As Byte) As Integer
Dim iReturn As Integer
Dim i As Integer
For i = 0 To UBound(bArray) - LBound(bArray)
iReturn = iReturn + bArray(i) * 2 ^ i
Next i
BArrayToInt = iReturn
End Function
from :
bytearray - Byte Array to a Signed Integer in VB6 - Stack Overflow[
^]