endian optimizations (memcpy)