mallocDup

Duplicates a slice with malloc. Equivalent to .dup Has to be cleaned-up with free().

nothrow @nogc
T[]
mallocDup
(
T
)
(
const(T)[] slice
)
if (
!is(T == struct)
)

Meta