* garrow_file_input_stream_new: * @path: The path of the file to be opened. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (nullable): A newly created #GArrowFileInputStream * or %NULL on error. * * Since: 6.0.0 */
| 634 | * Since: 6.0.0 |
| 635 | */ |
| 636 | GArrowFileInputStream * |
| 637 | garrow_file_input_stream_new(const gchar *path, GError **error) |
| 638 | { |
| 639 | auto arrow_stream_result = arrow::io::ReadableFile::Open(path); |
| 640 | if (garrow::check(error, arrow_stream_result, "[file-input-stream][new]")) { |
| 641 | auto arrow_stream = *arrow_stream_result; |
| 642 | return garrow_file_input_stream_new_raw(&arrow_stream); |
| 643 | } else { |
| 644 | return NULL; |
| 645 | } |
| 646 | } |
| 647 | |
| 648 | /** |
| 649 | * garrow_file_input_stream_new_file_descriptor: |
nothing calls this directly
no test coverage detected