Function lrs::ptr::memcpy

Copies a number of elements between two non-overlapping pointers.

Syntax

unsafe fn memcpy<T>(dst: *mut T, src: *const T, n: usize) -> ()

Arguments

NameDescription
dst

The pointer that will be written to.

src

The pointer that will be read from.

n

The number of elements that will be copied.

Remarks

If the pointers overlap, the behavior is undefined.