Skip to main content

copy_bytes

Function copy_bytes 

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

Copies n bytes from src to dst. The regions may overlap.

ยงSafety

  • src must be valid for reads of n bytes.
  • dst must be valid for writes of n bytes.