原文:http://kpbp.github.io/swiftcheatsheet/A quick cheat sheet and reference guide for Apple's Swift language. This guide intends to cover all the key f...
分类:
编程语言 时间:
2015-01-26 10:13:03
阅读次数:
205
netty的引用计数文档看http://netty.io/wiki/reference-counted-objects.html为什么会引用引用计数呢,Java中不是有gc线程帮我们回收对象吗?我个人理解如下1:netty为了实现zero copy使用了Direct Buffer,该buffer从N...
分类:
Web程序 时间:
2015-01-25 23:47:56
阅读次数:
246
对整个项目关闭ARCproject -> Build settings -> Apple LLVM complier 3.0 - Language -> objective-C Automatic Reference Counting设置为NO但有的时候某些文件还是会报release之类的错,这时需...
分类:
其他好文 时间:
2015-01-25 20:54:15
阅读次数:
185
Foundation Kit是OS X类库和IOS类库共享的基础类库,里面提供了很多封装类,具体可以见https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/ObjC_classic/,下面介绍...
分类:
其他好文 时间:
2015-01-25 19:29:16
阅读次数:
193
一、前言 有人说指针是C语言的灵魂,也有人说没学好指针就等于不会C语言。 虽然在现代C++中一般都是推荐尽量避免使用原生的raw指针,而是以smart pointer 和reference替代之。但是无论怎样,对于C/C++来说,指针始终是个绕不过去的坎。究其原因,是因为C/C++都是支持面向底.....
分类:
其他好文 时间:
2015-01-25 00:05:21
阅读次数:
280
返回总册本章节原文:http://www.cplusplus.com/reference/deque/deque/1. std::dequetemplate > class deque;双端队列deque(发音类似"deck")是对double-ended-queue比较特殊的缩写方式。deque....
分类:
编程语言 时间:
2015-01-23 17:49:58
阅读次数:
214
如果想获取软件开发电子文档,请前往博客http://u.union.kankan.com/y2MZnahttp://www.gxp.cc/file-2310976.html[XSLT]XSLT.2.0.Programmers.Reference.Third.Edition.eBook-LiB.zip...
分类:
其他好文 时间:
2015-01-23 09:23:49
阅读次数:
132
智能指针(smart pointer)是存储指向动态分配(堆)对象指针的类,用于生存期控制,能够确保自动正确的销毁动态分配的对象,防止内存泄露。它的一种通用实现技术是使用引用计数(reference count)。智能指针类将一个计数器与类指向的对象相关联,引用计数跟踪该类有多少个对象共享同一指针。...
分类:
编程语言 时间:
2015-01-22 17:47:34
阅读次数:
323
What is a stack overflow error?Parameters and local variables are allocated on the stack (with reference types the object lives on the heap and a vari...
分类:
其他好文 时间:
2015-01-22 06:57:13
阅读次数:
117