Duplicates a slice with malloc. Equivalent to .idup Has to be cleaned-up with free(slice.ptr) or freeSlice(slice).
See Implementation
Duplicates a slice with malloc. Equivalent to .idup Has to be cleaned-up with free(slice.ptr) or freeSlice(slice).