* garrow_resizable_buffer_reserve: * @buffer: A #GArrowResizableBuffer. * @new_capacity: The new buffer capacity in bytes. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: %TRUE on success, %FALSE if there was an error. * * Since: 0.3.0 */
| 592 | * Since: 0.3.0 |
| 593 | */ |
| 594 | gboolean |
| 595 | garrow_resizable_buffer_reserve(GArrowResizableBuffer *buffer, |
| 596 | gint64 new_capacity, |
| 597 | GError **error) |
| 598 | { |
| 599 | auto arrow_buffer = garrow_buffer_get_raw(GARROW_BUFFER(buffer)); |
| 600 | auto arrow_resizable_buffer = |
| 601 | std::static_pointer_cast<arrow::ResizableBuffer>(arrow_buffer); |
| 602 | auto status = arrow_resizable_buffer->Reserve(new_capacity); |
| 603 | return garrow_error_check(error, status, "[resizable-buffer][capacity]"); |
| 604 | } |
| 605 | |
| 606 | G_END_DECLS |
| 607 |
nothing calls this directly
no test coverage detected