* garrow_decimal128_array_format_value: * @array: A #GArrowDecimal128Array. * @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: 0.10.0 */
| 3772 | * Since: 0.10.0 |
| 3773 | */ |
| 3774 | gchar * |
| 3775 | garrow_decimal128_array_format_value(GArrowDecimal128Array *array, gint64 i) |
| 3776 | { |
| 3777 | auto arrow_array = garrow_array_get_raw(GARROW_ARRAY(array)); |
| 3778 | auto arrow_decimal128_array = |
| 3779 | std::static_pointer_cast<arrow::Decimal128Array>(arrow_array); |
| 3780 | auto value = arrow_decimal128_array->FormatValue(i); |
| 3781 | return g_strndup(value.data(), value.size()); |
| 3782 | } |
| 3783 | |
| 3784 | /** |
| 3785 | * garrow_decimal128_array_get_value: |
nothing calls this directly
no test coverage detected