* garrow_decimal32_array_format_value: * @array: A #GArrowDecimal32Array. * @i: The index of the target value. * * Returns: (transfer full): The formatted @i-th value. * * It should be freed with g_free() when no longer needed. * * Since: 19.0.0 */
| 3664 | * Since: 19.0.0 |
| 3665 | */ |
| 3666 | gchar * |
| 3667 | garrow_decimal32_array_format_value(GArrowDecimal32Array *array, gint64 i) |
| 3668 | { |
| 3669 | auto arrow_array = garrow_array_get_raw(GARROW_ARRAY(array)); |
| 3670 | auto arrow_decimal32_array = |
| 3671 | std::static_pointer_cast<arrow::Decimal32Array>(arrow_array); |
| 3672 | auto value = arrow_decimal32_array->FormatValue(i); |
| 3673 | return g_strndup(value.data(), value.size()); |
| 3674 | } |
| 3675 | |
| 3676 | /** |
| 3677 | * garrow_decimal32_array_get_value: |
nothing calls this directly
no test coverage detected