开发者

Basic I/O in Qt

开发者 https://www.devze.com 2023-02-06 12:12 出处:网络
I would like to read/write into memory the same way I would write into a fil开发者_JAVA技巧e (with a datastream). I couldn\'t find a suitable class for this, but I\'m sure it exists. What is the name

I would like to read/write into memory the same way I would write into a fil开发者_JAVA技巧e (with a datastream). I couldn't find a suitable class for this, but I'm sure it exists. What is the name of such a class in the Qt framework?


Check out the classes that inherit from QIODevice.

http://doc.qt.nokia.com/latest/qiodevice.html

I'm not 100% clear on what you want, but chances are it is there. For instance, it sounds like you want a QBuffer but if you're talking about writing to shared memory at the OS level, then this isn't the same.

0

精彩评论

暂无评论...
验证码 换一张
取 消