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

Function garrow_stream_decoder_consume_buffer

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

* garrow_stream_decoder_consume_buffer: * @decoder: A #GArrowStreamDecoder. * @buffer: A #GArrowBuffer to be decoded. * @error: (nullable): Return location for a #GError or %NULL. * * Feed data to the decoder as a #GArrowBuffer. * * If the decoder can read one or more record batches by the data, the * decoder calls [vfunc@GArrowStreamListener.on_record_batch_decoded] * with a decoded reco

Source from the content-addressed store, hash-verified

454 * Since: 18.0.0
455 */
456gboolean
457garrow_stream_decoder_consume_buffer(GArrowStreamDecoder *decoder,
458 GArrowBuffer *buffer,
459 GError **error)
460{
461 auto arrow_decoder = garrow_stream_decoder_get_raw(decoder);
462 auto arrow_buffer = garrow_buffer_get_raw(buffer);
463 return garrow::check(error,
464 arrow_decoder->Consume(arrow_buffer),
465 "[stream-decoder][consume-buffer]");
466}
467
468/**
469 * garrow_stream_decoder_reset:

Callers

nothing calls this directly

Calls 4

garrow_buffer_get_rawFunction · 0.85
checkFunction · 0.70
ConsumeMethod · 0.45

Tested by

no test coverage detected