Skip to content

FFI: allow taking ownership of memory when creating arrays #7248

@myrrc

Description

@myrrc

Since #7148 our C api allows creating arrays from buffers. The issue is, we copy the underlying memory, because we don't know how it was allocated. we need to exposed a owned memory block with associated deleter and alloc to construct arrays from it.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions