I'm sorry for remaining this problem in the sample code Orz.
You can refer to the sample code in 09-Advance/StreamAndAsync to solve this problem (I will fix it in the same way later).
In general, we need to take out the pointer of the allocated page-locked memory buffer, pack it into a numpy array, and then use this numpy arrays to write and read the data in Python.
I'm sorry for remaining this problem in the sample code Orz.
You can refer to the sample code in 09-Advance/StreamAndAsync to solve this problem (I will fix it in the same way later).
In general, we need to take out the pointer of the allocated page-locked memory buffer, pack it into a numpy array, and then use this numpy arrays to write and read the data in Python.