Qt 中的基本 I/O
我想以与写入文件(使用数据流)相同的方式读/写内存。我找不到合适的课程,但我确信它存在。 Qt框架中这样的类叫什么名字?
I would like to read/write into memory the same way I would write into a file (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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看从 QIODevice 继承的类。
http://doc.qt.nokia.com/latest/qiodevice.html
我不是 100% 清楚你想要什么,但很可能它就在那里。例如,听起来您想要一个 QBuffer,但如果您谈论的是在操作系统级别写入共享内存,那么这就不一样了。
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.