Skip to content

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.

…king)

Signed-off-by: jparisu <javierparis@eprosima.com>
@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.

2 participants