dendenners
Programmer
Hi there,
I'm having trouble converting a 4 byte hex value into the correct int value that it represents. I was wondering would anyone know where I could find some generic method that takes in a byte array with numerical hex values and returns the calculated int value? Thanks
(e.g. if my 4 byte array contains byte[0]=00,byte[1]=00, byte[2]=01, byte[3]=4A, the correct value is A*1 + 4*16 + 1*256=10 + 64 + 256 = 330)
I'm having trouble converting a 4 byte hex value into the correct int value that it represents. I was wondering would anyone know where I could find some generic method that takes in a byte array with numerical hex values and returns the calculated int value? Thanks
(e.g. if my 4 byte array contains byte[0]=00,byte[1]=00, byte[2]=01, byte[3]=4A, the correct value is A*1 + 4*16 + 1*256=10 + 64 + 256 = 330)