gPtrArrayFromD

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

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

Parameters

T

Type of the array values

zeroTerminated

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

a T[]

The D array

Return Value

Type: GPtrArray*

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