From: Kouhei S. <ko...@co...> - 2015-02-07 05:28:08
|
Hi, In <CAG...@ma...> "[ruby-gnome2-devel-en] array arguments to boxed constructors" on Fri, 6 Feb 2015 12:31:04 +0000, jc...@gm... wrote: > I have a boxed type with a constructor declared like this: > > /** > * vips_array_int_new: > * @array: (array length=n): array of int > * @n: number of ints > * > * Allocate a new array of ints and copy @array into it. Free with > * vips_area_unref(). > * > * See also: #VipsArea. > * > * Returns: (transfer full): A new #VipsArrayInt. > */ > VipsArrayInt * > vips_array_int_new( const int *array, int n ) > {} > > Code here: > > https://github.com/jcupitt/libvips/blob/master/libvips/iofuncs/type.c#L649 > > Is it possible to create one of these things from Ruby? I'm getting a > NotImplementedError if I do the obvious thing: I've added a support of the type at master. Please try master! Thanks, -- kou |