champlain_renderer_set_data() is unusable in Vala
I'm trying to implement a ChamplainRenderer in Vala, and it doesn't work because Vala sees the const gchar *data
argument and assumes it's a null-terminated string. This can easily be fixed with a GIR annotation on the data parameter: (array length=size) (type guint8)
.
However, I'm not sure about the type
part of that fix. Should I override the type in the annotations, or change it in the actual code? They're functionally the same, but gchar
makes Vala think it's a string.