* 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 */
| 261 | * Since: 0.11.0 |
| 262 | */ |
| 263 | gboolean |
| 264 | garrow_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: |
nothing calls this directly
no test coverage detected