Skip to main content

memcpy

Function memcpy 

Source
pub unsafe fn memcpy(dst: *mut u8, src: *const u8, n: usize)
Expand description

Copy n bytes from src to dst.

The memory regions must not overlap. For overlapping copies, use memmove. This is enforced by the SVM runtime on BPF.

ยงSafety

Both src and dst must be valid for n bytes. Regions must not overlap.