So I have an address where an offset for a vftable is located. it is stored in the assembly as bytes. ex: 03 c3 bd 0c
I want to get the bytes, and convert them little endian style to an address.
byte[0] = ((unsigned char *)addr)[3];
byte[1] = ((unsigned char *)addr)[2];
byte[2] = ((unsigned char *)addr)[1];
byte[3] = ((unsigned char *)addr)[0];
so the output of the example would be 0x0cbdc303.
how can I correctly code this?