I have built a library consists of python layer and C++ layer. In the C++ layer I have a big chunk of memory that I need to keep in the heap so the chunk has to be allocated dynamically at the time of compilation.
What I want to do is to make this chunk of memory configurable from the python side. Is there a way to allocate memory space dynamically from python and pass the pointer to C++ layer ?
Thanks