Convert between the native endianness and the endianness specified by tag tag can be "big_32", "big_64", "little_32", "little_64"
tag
"big_32", "big_64", "little_32", "little_64"