* garrow_decimal256_array_format_value: * @array: A #GArrowDecimal256Array. * @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: 3.0.0 */
| 3825 | * Since: 3.0.0 |
| 3826 | */ |
| 3827 | gchar * |
| 3828 | garrow_decimal256_array_format_value(GArrowDecimal256Array *array, gint64 i) |
| 3829 | { |
| 3830 | auto arrow_array = garrow_array_get_raw(GARROW_ARRAY(array)); |
| 3831 | auto arrow_decimal256_array = |
| 3832 | std::static_pointer_cast<arrow::Decimal256Array>(arrow_array); |
| 3833 | auto value = arrow_decimal256_array->FormatValue(i); |
| 3834 | return g_strndup(value.data(), value.size()); |
| 3835 | } |
| 3836 | |
| 3837 | /** |
| 3838 | * garrow_decimal256_array_get_value: |
nothing calls this directly
no test coverage detected