ralfbiedert / interoptopus

The polyglot bindings generator for your library (C#, C, Python, …) 🐙
302 stars 27 forks source link

Remapped the lifetimes of FFISlice and FFISliceMut a bit. #107

Closed Earthmark closed 6 days ago

Earthmark commented 6 days ago

This allows FFISlice and FFISliceMut to 'leak' a slice of the backing data, even though the returned slice has a valid actual lifetime.

This allows FFISlice to be a pass-through through type.

ralfbiedert commented 6 days ago

Thanks!