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

Function garrow_stream_decoder_new

c_glib/arrow-glib/decoder.cpp:396–409  ·  view source on GitHub ↗

* garrow_stream_decoder_new: * @listener: The #GArrowStreamListener that receives decoded events. * @options: (nullable): The #GArrowReadOptions. * * Returns: A newly created #GArrowStreamDecoder. * * Since: 18.0.0 */

Source from the content-addressed store, hash-verified

394 * Since: 18.0.0
395 */
396GArrowStreamDecoder *
397garrow_stream_decoder_new(GArrowStreamListener *listener, GArrowReadOptions *options)
398{
399 auto arrow_listener = garrow_stream_listener_get_raw(listener);
400 arrow::ipc::IpcReadOptions arrow_options;
401 if (options) {
402 arrow_options = *garrow_read_options_get_raw(options);
403 } else {
404 arrow_options = arrow::ipc::IpcReadOptions::Defaults();
405 }
406 auto arrow_decoder =
407 std::make_shared<arrow::ipc::StreamDecoder>(arrow_listener, arrow_options);
408 return garrow_stream_decoder_new_raw(&arrow_decoder, listener);
409}
410
411/**
412 * garrow_stream_decoder_consume_bytes:

Callers

nothing calls this directly

Calls 2

DefaultsFunction · 0.50

Tested by

no test coverage detected