add endian check by pointer approach