* 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 */
| 183 | * Since: 0.3.0 |
| 184 | */ |
| 185 | GArrowBuffer * |
| 186 | garrow_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: |
nothing calls this directly
no outgoing calls
no test coverage detected