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

Function garrow_resizable_buffer_reserve

c_glib/arrow-glib/buffer.cpp:594–604  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

592 * Since: 0.3.0
593 */
594gboolean
595garrow_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
606G_END_DECLS
607

Callers

nothing calls this directly

Calls 3

garrow_buffer_get_rawFunction · 0.85
garrow_error_checkFunction · 0.85
ReserveMethod · 0.45

Tested by

no test coverage detected