-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support bindings for custom blocks #759
Comments
This would still require to have What if |
@NicolasT I think that approach might not work, since we also need to inform OCaml of |
Right. For the use-case I had in mind, the wrapped value is always a pointer itself, so size is a known constant. |
For that use case, could you just use a |
As far as I can tell, there is no way in ctypes to return a custom block. I'd imagine this would work something like the following:
binding:
generated C stub:
Is this already implemented and just something I overlooked? If not, this seems like an important piece of functionality to add.
The text was updated successfully, but these errors were encountered: