* garrow_run_end_encode_options_new: * @run_end_data_type: (nullable): A #GArrowDataType for run-end. If this * is %NULL, garrow_int32_data_type_new() is used. * * Returns: A newly created #GArrowRunEndEncodeOptions. * * Since: 13.0.0 */
| 6143 | * Since: 13.0.0 |
| 6144 | */ |
| 6145 | GArrowRunEndEncodeOptions * |
| 6146 | garrow_run_end_encode_options_new(GArrowDataType *run_end_data_type) |
| 6147 | { |
| 6148 | bool need_run_end_data_type_unref = false; |
| 6149 | if (!run_end_data_type) { |
| 6150 | run_end_data_type = GARROW_DATA_TYPE(garrow_int32_data_type_new()); |
| 6151 | need_run_end_data_type_unref = true; |
| 6152 | } |
| 6153 | auto options = g_object_new(GARROW_TYPE_RUN_END_ENCODE_OPTIONS, |
| 6154 | "run-end-data-type", |
| 6155 | run_end_data_type, |
| 6156 | NULL); |
| 6157 | if (need_run_end_data_type_unref) { |
| 6158 | g_object_unref(run_end_data_type); |
| 6159 | } |
| 6160 | return GARROW_RUN_END_ENCODE_OPTIONS(options); |
| 6161 | } |
| 6162 | |
| 6163 | /** |
| 6164 | * garrow_array_run_end_encode: |
no test coverage detected