gArrayGFromD

Template to convert a D array to a GArray for passing to C functions

gArrayGFromD
(
T
bool zeroTerminated = false
)
(
T[] a
)

Parameters

T

Type of the array values

zeroTerminated

Set to true to enable zero termination in GArray (defaults to false)

a T[]

The D array

Return Value

Type: GArray*

New GArray which should be freed with containerFree!() template (if ownership not taken by C code)