accept address and use correct endianess for ints