Function - Copy a region of virtual memory.
kern_return_t vm_copy
(vm_task_t target_task,
vm_address_t source_address,
vm_size_t count,
vm_address_t dest_address);
The vm_copy function copies a source region to a destination region within the same task's virtual memory. It is semantically equivalent to vm_read followed by vm_write. The destination region can overlap the source region.
The destination region must already be allocated. The source region must be readable, and the destination region must be writable.
This interface is machine word length specific because of the virtual address parameter.
Functions: vm_protect, vm_read, vm_write, host_page_size.