* garrow_gio_output_stream_new: * @gio_output_stream: The stream to be output. * * Returns: (transfer full): A newly created #GArrowGIOOutputStream. */
| 532 | * Returns: (transfer full): A newly created #GArrowGIOOutputStream. |
| 533 | */ |
| 534 | GArrowGIOOutputStream * |
| 535 | garrow_gio_output_stream_new(GOutputStream *gio_output_stream) |
| 536 | { |
| 537 | auto arrow_output_stream = std::make_shared<garrow::GIOOutputStream>(gio_output_stream); |
| 538 | auto object = g_object_new(GARROW_TYPE_GIO_OUTPUT_STREAM, |
| 539 | "output-stream", |
| 540 | &arrow_output_stream, |
| 541 | "raw", |
| 542 | gio_output_stream, |
| 543 | NULL); |
| 544 | auto output_stream = GARROW_GIO_OUTPUT_STREAM(object); |
| 545 | return output_stream; |
| 546 | } |
| 547 | |
| 548 | /** |
| 549 | * garrow_gio_output_stream_get_raw: |