CF的記憶體管理。

love_hot_girl發表於2020-04-07

https://developer.apple.com/library/mac/#documentation/CoreFoundation/Conceptual/CFMemoryMgmt/CFMemoryMgmt.html


Memory Management Programming Guide for Core Foundation


Introduction

For managing memory Core Foundation uses allocators, a reference-counting mechanism, and a policy of object ownership that is suggested by the names of functions. This topic covers related techniques for creating, copying, retaining, and releasing objects.

Memory management is fundamental to using Core Foundation effectively and efficiently. This document is essential reading for all developers who use Core Foundation.

Organization of This Document

The following concepts and tasks discuss the built in support Core Foundation provides for managing the memory allocation and deallocation of objects:

If you need to customize your allocators then read:

To find out more about byte ordering and swapping see:

See Also

The following may also be of interest:


相關文章