* garrow_cuda_buffer_export: * @buffer: A #GArrowCUDABuffer. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (transfer full): A newly created * #GArrowCUDAIPCMemoryHandle to handle the exported buffer on * success, %NULL on error * * Since: 0.8.0 */
| 401 | * Since: 0.8.0 |
| 402 | */ |
| 403 | GArrowCUDAIPCMemoryHandle * |
| 404 | garrow_cuda_buffer_export(GArrowCUDABuffer *buffer, GError **error) |
| 405 | { |
| 406 | auto arrow_buffer = garrow_cuda_buffer_get_raw(buffer); |
| 407 | auto arrow_handle = arrow_buffer->ExportForIpc(); |
| 408 | if (garrow::check(error, arrow_handle, "[cuda][buffer][export-for-ipc]")) { |
| 409 | return garrow_cuda_ipc_memory_handle_new_raw(&(*arrow_handle)); |
| 410 | } else { |
| 411 | return NULL; |
| 412 | } |
| 413 | } |
| 414 | |
| 415 | /** |
| 416 | * garrow_cuda_buffer_get_context: |
nothing calls this directly
no test coverage detected