Skip to main content

copy_backward

Function copy_backward 

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

Backward copy of bytes bytes with 8-byte granularity.

Required when dst > src and the ranges overlap (scrolling down): a forward copy would overwrite source bytes before they are read.

ยงSafety

Both ranges must be valid for bytes bytes.