* garrow_decimal64_array_format_value: * @array: A #GArrowDecimal64Array. * @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 */
| 3718 | * Since: 19.0.0 |
| 3719 | */ |
| 3720 | gchar * |
| 3721 | garrow_decimal64_array_format_value(GArrowDecimal64Array *array, gint64 i) |
| 3722 | { |
| 3723 | auto arrow_array = garrow_array_get_raw(GARROW_ARRAY(array)); |
| 3724 | auto arrow_decimal64_array = |
| 3725 | std::static_pointer_cast<arrow::Decimal64Array>(arrow_array); |
| 3726 | auto value = arrow_decimal64_array->FormatValue(i); |
| 3727 | return g_strndup(value.data(), value.size()); |
| 3728 | } |
| 3729 | |
| 3730 | /** |
| 3731 | * garrow_decimal64_array_get_value: |
nothing calls this directly
no test coverage detected