memcpy

public func memcpy(consuming RawPointer, consuming RawPointer, consuming Int64) -> RawPointer

Wraps memcpy(3) — copies n bytes from src to dest.

Source and destination must not overlap — use memmove if they might. Returns dest for convenience. No bounds checking; the caller must ensure both regions are valid for n bytes.

Safety

src and dest must be valid for n bytes each, and the two regions must not overlap.

Defined in lang/std/ffi/libc.ks