carg_map = out_arg_map;
}
- // g_array_new: element size
- if (cl == garray_type && param.name == "element_size") {
- var csizeof = new CCodeFunctionCall (new CCodeIdentifier ("sizeof"));
- csizeof.add_argument (new CCodeIdentifier (get_ccode_name (expr.type_reference.get_type_arguments ().get (0))));
- cexpr = csizeof;
- }
-
if (get_ccode_array_length (param) && param.variable_type is ArrayType) {
var array_type = (ArrayType) param.variable_type;
for (int dim = 1; dim <= array_type.rank; dim++) {
[CCode (cname = "data", array_length_cname = "len", array_length_type = "uint")]
public G[] data;
- public Array (bool zero_terminated = true, bool clear = true, ulong element_size = 0);
+ public Array (bool zero_terminated = true, bool clear = true, ulong element_size = sizeof (G));
[CCode (cname = "g_array_sized_new")]
- public Array.sized (bool zero_terminated, bool clear, ulong element_size, uint reserved_size);
+ public Array.sized (bool zero_terminated = true, bool clear = true, ulong element_size = sizeof (G), uint reserved_size = 0);
public void append_val (owned G value);
public void append_vals (void* data, uint len);
public void prepend_val (owned G value);