This swaps the order of the input and output pointers so that it's consistent with the order used by memcpy().