Skip to content
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

[NOT MERGE] Try to use numpy with ctypes #86

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

jparisu
Copy link
Contributor

@jparisu jparisu commented Jun 29, 2023

This PR tried to use numpy and ctypes library to pass bytes from Python to C++ avoiding a copy in the process.

Conclusions

There is still no way to pass a pointer from Python to C++ through SWIG. SWIG check every parameter that is passed through and the ptrs that come from numpy or ctypes are of a Python class (those from ctypes could be parsed to C, but SWIG does not allow it).

Disclaimer

This PR adds a demo that IS NOT WORKING.

@jparisu jparisu temporarily deployed to codecov June 29, 2023 10:54 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant