Template to copy a D array for use by C.
The array type
Yes.Alloc to use g_malloc() to allocate the array, No.Alloc to use D memory (defaults to No)
Yes.ZeroTerminated if the resulting array should be zero terminated (defaults to No)
The array to copy
C array or null if array is empty
Template to copy a D array for use by C.