26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
* Initialize the already allocated object.
* Also sets up the memory pool for the object.
*
* \return An initialized object
*/
- init;
/**
* Allocate memory and store it in the objects memory pool so it can be free'd
* automatically when the object is free'd.
*
* \param size The size of the memory to allocate
* \return A pointer to the allocated memory
*/
|
>
>
>
>
>
>
>
>
>
|
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
* Initialize the already allocated object.
* Also sets up the memory pool for the object.
*
* \return An initialized object
*/
- init;
/**
* Adds a pointer to the memory pool.
* This is useful to add memory allocated by functions such as asprintf to the
* pool so it gets freed automatically when the object is freed.
*
* \param ptr A pointer to add to the memory pool
*/
- addToMemoryPool: (void*)ptr;
/**
* Allocate memory and store it in the objects memory pool so it can be free'd
* automatically when the object is free'd.
*
* \param size The size of the memory to allocate
* \return A pointer to the allocated memory
*/
|