Function memx::memcpy

source ·
pub fn memcpy(dst: &mut [u8], src: &[u8]) -> Result<(), RangeError>
Expand description

This mimics libc::memcpy(), same as dst = src.

The memcpy() function copies src.len() bytes from the src to the dst. The src and the dst must not overlape. This function return Err(RangeError) if dst.len() < src.len(), otherwise return Ok(())