copyMem

Like memmove() but for @safe context. dst and src can't overlap.

copyMem
nothrow @trusted @nogc
()
in { if (count) { assert (dst); assert (src); assert (dst + count <= src || dst >= src + count); } }

Parameters

dst
Type: Ptr

The data source.

src
Type: Ptr

The data destination.

count
Type: size_t

The count of byte to meove from src to dst.

Return Value

Type: Ptr

the pointer to the destination, (same as dst).

Meta