C
Charles Law
I thought this had come up before, but I now cannot find it.
I have a byte array, such as
Dim a() As Byte = {1, 2, 3, 4}
I want to convert this to an Int32 = 01020304 (hex).
If I use BitConverter, I get 04030201.
Is there a built-in way to do this, or am I stuck with extracting and
shifting each byte manually?
TIA
Charles
I have a byte array, such as
Dim a() As Byte = {1, 2, 3, 4}
I want to convert this to an Int32 = 01020304 (hex).
If I use BitConverter, I get 04030201.
Is there a built-in way to do this, or am I stuck with extracting and
shifting each byte manually?
TIA
Charles