| Parameter | Description |
|---|---|
| ptr1 | Pointer to the first memory buffer. |
| ptr2 | Pointer to the second memory buffer to swap the first one with. |
| size | Number of bytes to swap. |
Swap the content of two memory buffers of the same size.
MemSwap copies the data when ptr1 and ptr2 buffers overlap, with the content of ptr1 in the overlapped region.