📄 memorymapping.h
字号:
/*---------------------------------------------------------------------------------------------
*/
#ifndef MEMORYMAPPING_H
#define MEMORYMAPPING_H
#ifndef WIN32
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#endif
class CMemoryMapping
{
public:
unsigned char* mmap_file(const char *filename, long &size);
unsigned char* mmap_file_seg(const char *filename, long size);
void ummap_file(const unsigned char* buf, long size);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -