* garrow_gio_input_stream_new: * @gio_input_stream: The stream to be read. * * Returns: (transfer full): A newly created #GArrowGIOInputStream. * * Since: 0.5.0 */
| 1028 | * Since: 0.5.0 |
| 1029 | */ |
| 1030 | GArrowGIOInputStream * |
| 1031 | garrow_gio_input_stream_new(GInputStream *gio_input_stream) |
| 1032 | { |
| 1033 | auto arrow_input_stream = std::make_shared<garrow::GIOInputStream>(gio_input_stream); |
| 1034 | auto object = g_object_new(GARROW_TYPE_GIO_INPUT_STREAM, |
| 1035 | "input-stream", |
| 1036 | &arrow_input_stream, |
| 1037 | "raw", |
| 1038 | gio_input_stream, |
| 1039 | NULL); |
| 1040 | auto input_stream = GARROW_GIO_INPUT_STREAM(object); |
| 1041 | return input_stream; |
| 1042 | } |
| 1043 | |
| 1044 | /** |
| 1045 | * garrow_gio_input_stream_get_raw: |