* garrow_cuda_buffer_get_context: * @buffer: A #GArrowCUDABuffer. * * Returns: (transfer full): A newly created #GArrowCUDAContext for the * buffer. Contexts for the same buffer share the same data internally. * * Since: 0.8.0 */
| 422 | * Since: 0.8.0 |
| 423 | */ |
| 424 | GArrowCUDAContext * |
| 425 | garrow_cuda_buffer_get_context(GArrowCUDABuffer *buffer) |
| 426 | { |
| 427 | auto arrow_buffer = garrow_cuda_buffer_get_raw(buffer); |
| 428 | auto arrow_context = arrow_buffer->context(); |
| 429 | return garrow_cuda_context_new_raw(&arrow_context); |
| 430 | } |
| 431 | |
| 432 | /** |
| 433 | * garrow_cuda_buffer_read_record_batch: |
nothing calls this directly
no test coverage detected