Blender V2.61 - r43446
Defines | Typedefs | Functions

BLI_memarena.h File Reference

Memory arena ADT. More...

Go to the source code of this file.

Defines

#define BLI_MEMARENA_STD_BUFSIZE   (1<<14)

Typedefs

typedef struct MemArena MemArena

Functions

struct MemArenaBLI_memarena_new (int bufsize, const char *name)
void BLI_memarena_free (struct MemArena *ma)
void BLI_memarena_use_malloc (struct MemArena *ma)
void BLI_memarena_use_calloc (struct MemArena *ma)
void BLI_memarena_use_align (struct MemArena *ma, int align)
void * BLI_memarena_alloc (struct MemArena *ma, int size)

Detailed Description

Memory arena ADT.

Memory Arena

Memory arena's are commonly used when the program needs to quickly allocate lots of little bits of data, which are all freed at the same moment.

Definition in file BLI_memarena.h.


Define Documentation

#define BLI_MEMARENA_STD_BUFSIZE   (1<<14)

Typedef Documentation

typedef struct MemArena MemArena

Definition at line 52 of file BLI_memarena.h.


Function Documentation

void* BLI_memarena_alloc ( struct MemArena ma,
int  size 
)
void BLI_memarena_free ( struct MemArena ma)
struct MemArena* BLI_memarena_new ( int  bufsize,
const char *  name 
) [read]
void BLI_memarena_use_align ( struct MemArena ma,
int  align 
)

Definition at line 71 of file BLI_memarena.c.

References MemArena::align.

void BLI_memarena_use_calloc ( struct MemArena ma)
void BLI_memarena_use_malloc ( struct MemArena ma)

Definition at line 66 of file BLI_memarena.c.

References MemArena::use_calloc.

Referenced by bvh_done< VBVHTree >().