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

Function garrow_stream_decoder_consume_bytes

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

* garrow_stream_decoder_consume_bytes: * @decoder: A #GArrowStreamDecoder. * @bytes: A #GBytes to be decoded. * @error: (nullable): Return location for a #GError or %NULL. * * Feed data to the decoder as a raw data. * * 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 record batch mult

Source from the content-addressed store, hash-verified

425 * Since: 18.0.0
426 */
427gboolean
428garrow_stream_decoder_consume_bytes(GArrowStreamDecoder *decoder,
429 GBytes *bytes,
430 GError **error)
431{
432 auto arrow_decoder = garrow_stream_decoder_get_raw(decoder);
433 gsize size;
434 gconstpointer data = g_bytes_get_data(bytes, &size);
435 return garrow::check(error,
436 arrow_decoder->Consume(static_cast<const uint8_t *>(data), size),
437 "[stream-decoder][consume-bytes]");
438}
439
440/**
441 * garrow_stream_decoder_consume_buffer:

Callers

nothing calls this directly

Calls 3

checkFunction · 0.70
ConsumeMethod · 0.45

Tested by

no test coverage detected