MCPcopy Create free account
hub / github.com/apache/arrow / garrow_extension_array_get_storage

Function garrow_extension_array_get_storage

c_glib/arrow-glib/basic-array.cpp:3956–3967  ·  view source on GitHub ↗

* garrow_extension_array_get_storage: * @array: A #GArrowExtensionArray. * * Returns: (transfer full): The underlying storage of the array. * * Since: 3.0.0 */

Source from the content-addressed store, hash-verified

3954 * Since: 3.0.0
3955 */
3956GArrowArray *
3957garrow_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
3969G_END_DECLS
3970

Callers

nothing calls this directly

Calls 1

garrow_array_new_rawFunction · 0.85

Tested by

no test coverage detected