moveMem

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

moveMem
nothrow @trusted @nogc
(
,
const Ptr src
,
size_t count
)
in { if (count) { assert (dst); assert (src); } }

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