📄 util.h.svn-base
字号:
#ifndef IRSTLM_UTIL_H#define IRSTLM_UTIL_H#include <string>#include <fstream>#include "gzfilebuf.h"std::string gettempfolder();void createtempfile(std::ofstream &fileStream, std::string &filePath, std::ios_base::openmode flags);void removefile(const std::string &filePath);class inputfilestream : public std::istream{protected: std::streambuf *m_streambuf; bool _good;public: inputfilestream(const std::string &filePath); ~inputfilestream(); bool good(){return _good;} void close();};void *MMap(int fd, int access, off_t offset, size_t len, off_t *gap);int Munmap(void *p,size_t len,int sync);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -