Added endian aware read/writing functions.