* 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 */
| 438 | * Since: 0.3.0 |
| 439 | */ |
| 440 | GArrowMutableBuffer * |
| 441 | garrow_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: |
nothing calls this directly
no test coverage detected