Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Must one use QBuffer and memcpy for QSharedMemory?
summerfang last edited by
Hello, I am new to IPC. I found that most of the examples for QSharedMemory use QBuffer and memcpy() to read from and write to the QSharedMemory. However, that is very time-consuming if the data is large (e.g. a large image). I would like to ask if there is a way to use the data directly in the QSharedMemory as a variable? Thanks!
Use memcpy directly on your image data.