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

Function garrow_output_stream_align

c_glib/arrow-glib/output-stream.cpp:187–193  ·  view source on GitHub ↗

* garrow_output_stream_align: * @stream: A #GArrowOutputStream. * @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

185 * Since: 0.11.0
186 */
187gboolean
188garrow_output_stream_align(GArrowOutputStream *stream, gint32 alignment, GError **error)
189{
190 auto arrow_stream = garrow_output_stream_get_raw(stream);
191 auto status = arrow::ipc::AlignStream(arrow_stream.get(), alignment);
192 return garrow::check(error, status, "[output-stream][align]");
193}
194
195/**
196 * garrow_output_stream_write_tensor:

Callers

nothing calls this directly

Calls 4

AlignStreamFunction · 0.85
checkFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected