* garrow_decimal128_array_get_value: * @array: A #GArrowDecimal128Array. * @i: The index of the target value. * * Returns: (transfer full): The @i-th value. * * Since: 0.10.0 */
| 3791 | * Since: 0.10.0 |
| 3792 | */ |
| 3793 | GArrowDecimal128 * |
| 3794 | garrow_decimal128_array_get_value(GArrowDecimal128Array *array, gint64 i) |
| 3795 | { |
| 3796 | auto arrow_array = garrow_array_get_raw(GARROW_ARRAY(array)); |
| 3797 | auto arrow_decimal128_array = |
| 3798 | std::static_pointer_cast<arrow::Decimal128Array>(arrow_array); |
| 3799 | auto arrow_decimal128 = |
| 3800 | std::make_shared<arrow::Decimal128>(arrow_decimal128_array->GetValue(i)); |
| 3801 | return garrow_decimal128_new_raw(&arrow_decimal128); |
| 3802 | } |
| 3803 | |
| 3804 | G_DEFINE_TYPE(GArrowDecimal256Array, |
| 3805 | garrow_decimal256_array, |
nothing calls this directly
no test coverage detected