Skip to main content

copy_forward

Function copy_forward 

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

Forward copy of bytes bytes with 8-byte granularity.

Use only when dst < src (or when the ranges do not overlap): the copy is strictly forward, so an overlapping move-up is safe but a move-down is not.

ยงSafety

Both ranges must be valid for bytes bytes and must not require backward copying.