* garrow_decimal256_array_get_value: * @array: A #GArrowDecimal256Array. * @i: The index of the target value. * * Returns: (transfer full): The @i-th value. * * Since: 3.0.0 */
| 3844 | * Since: 3.0.0 |
| 3845 | */ |
| 3846 | GArrowDecimal256 * |
| 3847 | garrow_decimal256_array_get_value(GArrowDecimal256Array *array, gint64 i) |
| 3848 | { |
| 3849 | auto arrow_array = garrow_array_get_raw(GARROW_ARRAY(array)); |
| 3850 | auto arrow_decimal256_array = |
| 3851 | std::static_pointer_cast<arrow::Decimal256Array>(arrow_array); |
| 3852 | auto arrow_decimal256 = |
| 3853 | std::make_shared<arrow::Decimal256>(arrow_decimal256_array->GetValue(i)); |
| 3854 | return garrow_decimal256_new_raw(&arrow_decimal256); |
| 3855 | } |
| 3856 | |
| 3857 | typedef struct GArrowExtensionArrayPrivate_ |
| 3858 | { |
nothing calls this directly
no test coverage detected