摘要: ULONG systemGetVarName(const string &userLib){ if(ofs.is_open()) { ofs.close(); } ofs.open("d:\\log\\symbolTable.txt", ios::out); if(!ofs.is_open()) { 阅读全文
posted @ 2024-07-16 11:15 苍洱 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include <cxxabi.h> #include <string.h> #include <array> #include <iostream> int main() { const std::array<const char *, 5> bt = { "./src/warzone2100( 阅读全文
posted @ 2024-07-16 11:10 苍洱 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 原先多行注释,在vs编译是会出现某个结构体成员找不到。改成双斜杠注释即可 阅读全文
posted @ 2023-02-09 10:19 苍洱 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 参考https://www.msys2.org/news/ curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz curl -O http://repo.msys2.org/msys/ 阅读全文
posted @ 2020-09-30 10:29 苍洱 阅读(3820) 评论(0) 推荐(0) 编辑
摘要: 如果vector元素比较大,用push_back,会比较耗时 可以采用先push_back,在使用vector的引用 FastCodecs::DecoderMessage tmpdm ; getVecDM().push_back(tmpdm); FastCodecs::DecoderMessage& 阅读全文
posted @ 2020-09-09 10:03 苍洱 阅读(891) 评论(0) 推荐(0) 编辑
摘要: dd if=/dev/zero of=50M.file bs=1M count=50 创建50M的文件 阅读全文
posted @ 2020-09-09 09:44 苍洱 阅读(279) 评论(0) 推荐(0) 编辑
摘要: #include <sys/time.h> #include <string> #include <sys/mman.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #inc 阅读全文
posted @ 2020-09-09 09:24 苍洱 阅读(517) 评论(0) 推荐(0) 编辑
摘要: demo测试映射文件1G1 映射1次,1写,进行memset操作,共享内存占1G2 映射2次,1写,1读,单线程 1) 1写,进行memset操作,读无操作,共享内存占1G 2) 1写,进行memset操作,读某个指定位置字符(len/2或len-1位置),共享内存占1G 3) 1写,进行memse 阅读全文
posted @ 2020-09-09 09:17 苍洱 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 解决方案 #下载net git clone https://github.com/golang/net.git net # 安装net go install net 阅读全文
posted @ 2020-04-27 13:13 苍洱 阅读(484) 评论(0) 推荐(0) 编辑
摘要: 如果 line结构体带上析构函数,在vector中释放指针将会奔溃。具体原因不知 阅读全文
posted @ 2019-12-04 14:36 苍洱 阅读(1827) 评论(0) 推荐(0) 编辑