I am creating a SharedMemory
object, where data is being written to it in an I/O bound process for subsequent processing by a separate compute-bound process. In subsequent processing of the data I want to be able to read and write with a file-like object, so I'd like to copy to a io.BytesIO
object. I'm not sure how to use the buf
memory view object of the SharedMemory.
How can I copy data between a SharedMemory object and a BytesIO object?