Changeset View
Changeset View
Standalone View
Standalone View
doc/guides/blender-guardedalloc.txt
| MEMORY MANAGEMENT IN BLENDER (guardedalloc) | MEMORY MANAGEMENT IN BLENDER (guardedalloc) | ||||
| ------------------------------------------- | ------------------------------------------- | ||||
| NOTE: This file does not cover memutil and smart pointers and reference counted | NOTE: This file does not cover memutil and smart pointers and reference counted | ||||
| garbage collection, which are contained in the memutil module. | garbage collection, which are contained in the memutil module. | ||||
| Blender takes care of dynamic memory allocation using a set of own functions | Blender takes care of dynamic memory allocation using a set of own functions | ||||
| which are recognizeable through their MEM_ prefix. All memory allocation and | which are recognizable through their MEM_ prefix. All memory allocation and | ||||
| deallocation in blender is done through these functions. | deallocation in blender is done through these functions. | ||||
| The following functions are available through MEM_guardedalloc.h: | The following functions are available through MEM_guardedalloc.h: | ||||
| For normal operation: | For normal operation: | ||||
| --------------------- | --------------------- | ||||
| void *MEM_[mc]allocN(unsigned int len, char * str); | void *MEM_[mc]allocN(unsigned int len, char * str); | ||||
| ▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines | |||||