Blender V2.61 - r43446
|
#include <util_memarena.h>
Public Member Functions | |
MemArena (bool use_calloc=true, size_t buffer_size=(1<< 14)) | |
~MemArena () | |
void * | alloc (size_t size) |
Public Attributes | |
unsigned char * | curbuf |
int | bufsize |
int | cursize |
const char * | name |
int | use_calloc |
int | align |
LinkNode * | bufs |
Protected Attributes | |
bool | use_calloc |
size_t | buffer_size |
list< uint8_t * > | buffers |
uint8_t * | last_buffer |
size_t | last_left |
Definition at line 40 of file BLI_memarena.c.
CCL_NAMESPACE_BEGIN MemArena::MemArena | ( | bool | use_calloc = true , |
size_t | buffer_size = (1<<14) |
||
) |
Definition at line 25 of file util_memarena.cpp.
References buffer_size, last_buffer, last_left, NULL, and use_calloc.
MemArena::~MemArena | ( | ) |
Definition at line 34 of file util_memarena.cpp.
References buffers.
void * MemArena::alloc | ( | size_t | size | ) |
Definition at line 40 of file util_memarena.cpp.
References buffer_size, buffers, last_buffer, last_left, size(), and use_calloc.
int MemArena::align |
Definition at line 46 of file BLI_memarena.c.
Referenced by BLI_memarena_alloc(), BLI_memarena_new(), and BLI_memarena_use_align().
size_t MemArena::buffer_size [protected] |
Definition at line 38 of file util_memarena.h.
Referenced by alloc(), and MemArena().
list<uint8_t*> MemArena::buffers [protected] |
Definition at line 40 of file util_memarena.h.
Referenced by alloc(), and ~MemArena().
Definition at line 48 of file BLI_memarena.c.
Referenced by BLI_memarena_alloc(), and BLI_memarena_free().
Definition at line 42 of file BLI_memarena.c.
Referenced by BLI_memarena_alloc(), and BLI_memarena_new().
unsigned char* MemArena::curbuf |
Definition at line 41 of file BLI_memarena.c.
Referenced by BLI_memarena_alloc().
Definition at line 42 of file BLI_memarena.c.
Referenced by BLI_memarena_alloc().
uint8_t* MemArena::last_buffer [protected] |
Definition at line 41 of file util_memarena.h.
Referenced by alloc(), and MemArena().
size_t MemArena::last_left [protected] |
Definition at line 42 of file util_memarena.h.
Referenced by alloc(), and MemArena().
const char* MemArena::name |
Definition at line 43 of file BLI_memarena.c.
Referenced by BLI_memarena_alloc(), and BLI_memarena_new().
Definition at line 45 of file BLI_memarena.c.
Referenced by alloc(), BLI_memarena_alloc(), BLI_memarena_use_calloc(), BLI_memarena_use_malloc(), and MemArena().
bool MemArena::use_calloc [protected] |
Definition at line 37 of file util_memarena.h.