dimanche 16 juillet 2023

How to share memory between C++ and python code through pybind?

I want to parquet serialize a Pandas data frame in Python into BytesIO buffer and then invoke C++ call through pybind which would deserialize it into arrow table from the in-memory buffer. I am able to serialize the dataframe into python bytes using io.BytesIO , but can't find a good way to send its underlying address to C++. Since they share address space I suppose this should be very much possible.

Thanks

Aucun commentaire:

Enregistrer un commentaire