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

Function garrow_mutable_buffer_new

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

* garrow_mutable_buffer_new: * @data: (array length=size): Data for the buffer. * They aren't owned by the new buffer. * You must not free the data while the new buffer is alive. * @size: The number of bytes of the data. * * Returns: A newly created #GArrowMutableBuffer. * * Since: 0.3.0 */

Source from the content-addressed store, hash-verified

438 * Since: 0.3.0
439 */
440GArrowMutableBuffer *
441garrow_mutable_buffer_new(guint8 *data, gint64 size)
442{
443 auto arrow_buffer = std::make_shared<arrow::MutableBuffer>(data, size);
444 return garrow_mutable_buffer_new_raw(&arrow_buffer);
445}
446
447/**
448 * garrow_mutable_buffer_new_bytes:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected