MCPcopy Create free account
hub / github.com/apache/arrow / garrow_file_input_stream_new

Function garrow_file_input_stream_new

c_glib/arrow-glib/input-stream.cpp:636–646  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

634 * Since: 6.0.0
635 */
636GArrowFileInputStream *
637garrow_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:

Callers

nothing calls this directly

Calls 2

checkFunction · 0.70

Tested by

no test coverage detected