encoding little endian/big endian