且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何共享现有的char *与其他进程?

更新时间:2023-12-02 21:35:16

如果你可以阅读你想从文件和位置读取比你可以使用mmap映射文件到内存中的一部分文件大小或确切的内存。

if you can read file size or exact memory which you want to read from file and location than you can use mmap to map that part of file to memory.