Fix the endian read/writes in memorymappedFileByteBuffer