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

Function garrow_buffer_new

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

* garrow_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 #GArrowBuffer. * * Since: 0.3.0 */

Source from the content-addressed store, hash-verified

183 * Since: 0.3.0
184 */
185GArrowBuffer *
186garrow_buffer_new(const guint8 *data, gint64 size)
187{
188 auto arrow_buffer = std::make_shared<arrow::Buffer>(data, size);
189 return garrow_buffer_new_raw(&arrow_buffer);
190}
191
192/**
193 * garrow_buffer_new_bytes:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected