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

Function garrow_input_stream_align

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

* garrow_input_stream_align: * @input_stream: A #GArrowInputStream. * @alignment: The byte multiple for the metadata prefix, usually 8 * or 64, to ensure the body starts on a multiple of that alignment. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: %TRUE on success, %FALSE on error. * * Since: 0.11.0 */

Source from the content-addressed store, hash-verified

261 * Since: 0.11.0
262 */
263gboolean
264garrow_input_stream_align(GArrowInputStream *input_stream,
265 gint32 alignment,
266 GError **error)
267{
268 auto arrow_input_stream = garrow_input_stream_get_raw(input_stream);
269 auto status = arrow::ipc::AlignStream(arrow_input_stream.get(), alignment);
270 return garrow_error_check(error, status, "[input-stream][align]");
271}
272
273/**
274 * garrow_input_stream_read_tensor:

Callers

nothing calls this directly

Calls 4

AlignStreamFunction · 0.85
garrow_error_checkFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected