02 2023 档案
摘要:原文链接: https://blog.csdn.net/flowing_wind/article/details/81301001 参考资料:《C++ Primer中文版 第五版》 我们知道除了静态内存和栈内存外,每个程序还有一个内存池,这部分内存被称为自由空间或者堆。 程序用堆来存储动态分配的对象
阅读全文
摘要:#include "include/core/SkTypes.h" class SkNextID { public: /** * Shared between SkPixelRef's generationID and SkImage's uniqueID */ static uint32_t Im
阅读全文
摘要:单子,想弄不懂都很难 C 语言里没有现代程序员热衷于讨论的那些东西。 不过,那些东西不是原本就没有么? 下面我尝试用 C 语言来写一个单子(Monad)。 看下面这段代码: typedef struct { void *thing; } Maybe; 在 C 语言里,这是个结构体,而且是一个似乎很无
阅读全文
摘要:可以在chrome://version中查看 user data得目录:一般放在 C:\Users\youUserName\AppData\Local\chromium 全部删除试试。 Google Chrome 109.0.5414.120 (正式版本) (64 位) (cohort: Stabl
阅读全文
摘要:General way to implement tcp servers is “one thread/process per connection”. But on high loads this approach can be not so efficient and we need to us
阅读全文