Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在 Qt 中创建位于内存映射文件开头的数据流?一旦我使用QFile::map方法,我得到一个uchar*. 那么有没有办法用它来初始化数据流呢?提前致谢!
QFile::map
uchar*
我还没有尝试过,但是有一个QDataStream::readRawData()函数可以接受 achar *和一个长度,您应该可以将其uchar *输入。这会给你你的流。
QDataStream::readRawData()
char *
uchar *