* 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
| 454 | * Since: 18.0.0 |
| 455 | */ |
| 456 | gboolean |
| 457 | garrow_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: |
nothing calls this directly
no test coverage detected