* 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 */
| 185 | * Since: 0.11.0 |
| 186 | */ |
| 187 | gboolean |
| 188 | garrow_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: |
nothing calls this directly
no test coverage detected