gBytesFromD

Template to convert a D ubyte array to a GBytes for passing to C functions

gBytesFromD
(
ubyte[] a
)

Parameters

a ubyte[]

The D array

Return Value

Type: GBytes*

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