Assuming that `out` and `in` will never be overlapping pointers, I think it's find to just use `memcpy`.