mallocIDup

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

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

Meta