* garrow_extension_array_get_storage: * @array: A #GArrowExtensionArray. * * Returns: (transfer full): The underlying storage of the array. * * Since: 3.0.0 */
| 3954 | * Since: 3.0.0 |
| 3955 | */ |
| 3956 | GArrowArray * |
| 3957 | garrow_extension_array_get_storage(GArrowExtensionArray *array) |
| 3958 | { |
| 3959 | auto priv = GARROW_EXTENSION_ARRAY_GET_PRIVATE(array); |
| 3960 | if (priv->storage) { |
| 3961 | g_object_ref(priv->storage); |
| 3962 | return priv->storage; |
| 3963 | } |
| 3964 | |
| 3965 | auto array_priv = GARROW_ARRAY_GET_PRIVATE(array); |
| 3966 | return garrow_array_new_raw(&(array_priv->array)); |
| 3967 | } |
| 3968 | |
| 3969 | G_END_DECLS |
| 3970 |
nothing calls this directly
no test coverage detected