* garrow_decimal64_array_get_value: * @array: A #GArrowDecimal64Array. * @i: The index of the target value. * * Returns: (transfer full): The @i-th value. * * Since: 19.0.0 */
| 3737 | * Since: 19.0.0 |
| 3738 | */ |
| 3739 | GArrowDecimal64 * |
| 3740 | garrow_decimal64_array_get_value(GArrowDecimal64Array *array, gint64 i) |
| 3741 | { |
| 3742 | auto arrow_array = garrow_array_get_raw(GARROW_ARRAY(array)); |
| 3743 | auto arrow_decimal64_array = |
| 3744 | std::static_pointer_cast<arrow::Decimal64Array>(arrow_array); |
| 3745 | auto arrow_decimal64 = |
| 3746 | std::make_shared<arrow::Decimal64>(arrow_decimal64_array->GetValue(i)); |
| 3747 | return garrow_decimal64_new_raw(&arrow_decimal64); |
| 3748 | } |
| 3749 | |
| 3750 | G_DEFINE_TYPE(GArrowDecimal128Array, |
| 3751 | garrow_decimal128_array, |
nothing calls this directly
no test coverage detected