* garrow_struct_array_get_fields * @array: A #GArrowStructArray. * * Returns: (element-type GArrowArray) (transfer full): * The fields in the struct. */
| 1032 | * The fields in the struct. |
| 1033 | */ |
| 1034 | GList * |
| 1035 | garrow_struct_array_get_fields(GArrowStructArray *array) |
| 1036 | { |
| 1037 | auto fields = garrow_struct_array_get_fields_internal(array); |
| 1038 | |
| 1039 | GList *field_list = NULL; |
| 1040 | for (guint i = 0; i < fields->len; ++i) { |
| 1041 | auto field = static_cast<GArrowArray *>(g_ptr_array_index(fields, i)); |
| 1042 | field_list = g_list_prepend(field_list, g_object_ref(field)); |
| 1043 | } |
| 1044 | return g_list_reverse(field_list); |
| 1045 | } |
| 1046 | |
| 1047 | /** |
| 1048 | * garrow_struct_array_flatten |
nothing calls this directly
no test coverage detected