Is there a way to map an out param1** that is an array of structs of length param2? #201
-
As per the title, I can't quite figure out if it is possible to map this type of function:
Where the second
I'm aware of the Length Relation, but it appears to only be for Current mapping for this header produces:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
I believe we've blocked this specifically. It's due to the unknown allocation strategy, we cannot guarantee how it's supposed to be deallocated, therefore we can't lose the raw pointer. We offer |
Beta Was this translation helpful? Give feedback.
-
Did you mean |
Beta Was this translation helpful? Give feedback.
-
Whoops, I meant SharpGenTools/SharpGen.Runtime/MemoryHelpers.cs Lines 121 to 194 in fe286fc |
Beta Was this translation helpful? Give feedback.
-
Are there plans to add a "hint" to SharpGenTools to let it know how to deallocate this type of pointer? At least for this use case I just have boilerplate:
Perhaps even an overload of
To simply down to:
|
Beta Was this translation helpful? Give feedback.
Whoops, I meant
MemoryHelpers
, actually.SharpGenTools/SharpGen.Runtime/MemoryHelpers.cs
Lines 121 to 194 in fe286fc