* garrow_field_import: * @c_abi_schema: (not nullable): A `struct ArrowSchema *`. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (transfer full) (nullable): An imported #GArrowField on success, * %NULL on error. * * You don't need to release the passed `struct ArrowSchema *`, * even if this function reports an error. * * Since: 6.0.0 */
| 143 | * Since: 6.0.0 |
| 144 | */ |
| 145 | GArrowField * |
| 146 | garrow_field_import(gpointer c_abi_schema, GError **error) |
| 147 | { |
| 148 | auto arrow_field_result = arrow::ImportField(static_cast<ArrowSchema *>(c_abi_schema)); |
| 149 | if (garrow::check(error, arrow_field_result, "[field][import]")) { |
| 150 | return garrow_field_new_raw(&(*arrow_field_result), nullptr); |
| 151 | } else { |
| 152 | return NULL; |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | /** |
| 157 | * garrow_field_new: |
nothing calls this directly
no test coverage detected