大约有 34,000 项符合查询结果(耗时:0.0171秒) [XML]

https://www.tsingfun.com/it/tech/1903.html 

Android应用内存泄露分析、改善经验总结 - 更多技术 - 清泛网 - 专注C/C++及内核技术

...用,右键某个类→Merge Shortest Paths to GC Roots→exclude all phantom/weak/soft etc.references。 验证改善效果   根据个人经验,我一般是这样验证改善效果,运行程序,各个功能跑一遍,确保没有改出问题,完全退出程序,...
https://www.tsingfun.com/it/cpp/google_mock.html 

google mock分享(全网最全最好gmock文档,没有之一) - C/C++ - 清泛网 ...

... string value = "Hello World!"; MockFoo mockFoo; EXPECT_CALL(mockFoo, getArbitraryString()).Times(1). WillOnce(Return(value)); string returnValue = mockFoo.getArbitraryString(); cout << "Returned Value: " << returnValue << endl; return...
https://www.tsingfun.com/it/cpp/1871.html 

Boost.Asio简单使用(Timer,Thread,Io_service类) - C/C++ - 清泛网 - 专注C/C++及内核技术

... asio::write(socket, asio::buffer(message), asio::transfer_all(), asio::ignore_error()); } } 最后处理异常 catch (std::exception& e) { std::cerr << e.what() << std::endl; } return 0; 运行示例:运行服务器,然后运行上一节客户端,在win...
https://www.fun123.cn/referenc... 

使用 JSON 和 Web API · App Inventor 2 中文网

...式提供给它后续步骤。在下面例子中,我们给它 walk all at level 和 title 关键路径来获取列表中每个帖子标题(按appearance排序)。这段代码在功能上等同于上面使用 for each 块代码,但它更简洁。 发送数据 将数据发...
https://www.tsingfun.com/ilife/life/1848.html 

泰迪熊为什么叫泰迪 - 杂谈 - 清泛网 - 专注C/C++及内核技术

...负鼠配地瓜)。于是塔夫托说,“for possum first, last, and all the time”,这句话没看懂。但是塔夫托因为这句话被政治漫画家绘作一只负鼠,名为 Billy Possum(比利鼠)。 由于罗斯福和泰迪熊巨大成功,玩具商们看准了这次商机...
https://www.tsingfun.com/it/da... 

OceanBase使用libeasy原理源码分析:服务器端 - 数据库(内核) - 清泛网 - ...

...nection_t(TCP连接)输出缓冲区链表中 handler_.encode = ObMySQLCallback::encode; // libeasy回调这个函数用于从该连接输入缓冲区中反序列化出一个符合MySQL协议包,然后吐给上层使用 handler_.decode = ObMySQLCallback::decode; // 对于每个decode...
https://www.tsingfun.com/it/bigdata_ai/1077.html 

MySQL和MongoDB设计实例进行对比 - 大数据 & AI - 清泛网 - 专注C/C++及内核技术

...查询: db.getCollection("mobiles").find({ "params": { $all: [ {$elemMatch: {"name": "待机时间", "value": {$gt: 100}}}, {$elemMatch: {"name": "外观设计", "value": "直板"}} ] } }); 注:查询中用到$all,$elemMatch等高...
https://www.tsingfun.com/it/tech/1069.html 

Nginx与Lua - 更多技术 - 清泛网 - 专注C/C++及内核技术

...<VERSION>.tar.gz shell> cd LuaJIT-<VERSION> shell> make shell> make install 因为安装在缺省路径,所以LuaJIT对应lib,include均在/usr/local目录里。 shell> export LUAJIT_LIB=/usr/local/lib shell> export LUAJIT_INC=/usr/local/include/luajit-<VERSION> 下面就可以编译...
https://www.tsingfun.com/it/cp... 

[since C++11] std::array使用 - C/C++ - 清泛网 - 专注C/C++及内核技术

...y<char> as a fix sized c-string. array<char, 100> str = {0}; // all elements initialized with 0. char *p = str.data(); strcpy(p, "hello world"); printf("%s\n", p); // hello world END_TEST; 上面这个例子让我想起了std::string, 它有一个c_str()方法,...
https://www.tsingfun.com/it/cpp/655.html 

VC窗口刷新InvalidateRect和UpdateWindow - C/C++ - 清泛网 - 专注C/C++及内核技术

...INT messages. If an application processes a WM_PAINT message but does not call BeginPaint or otherwise clear the update region, the application continues to receive WM_PAINT messages as long as the region is not empty. In all cases, an application must clear the update region before returning from t...