Blender V5.0
btGenericPoolAllocator.h File Reference
#include <limits.h>
#include <stdio.h>
#include <string.h>
#include "LinearMath/btAlignedAllocator.h"

Go to the source code of this file.

Classes

class  btGenericMemoryPool
 Generic Pool class. More...
class  btGenericPoolAllocator
 Generic Allocator with pools. More...

Macros

#define BT_UINT_MAX   UINT_MAX
#define BT_DEFAULT_MAX_POOLS   16

Functions

void * btPoolAlloc (size_t size)
void * btPoolRealloc (void *ptr, size_t oldsize, size_t newsize)
void btPoolFree (void *ptr)

Detailed Description

Author
Francisco Leon Najera. email proje.nosp@m.ctil.nosp@m.eman@.nosp@m.yaho.nosp@m.o.com

General purpose allocator class

Definition in file btGenericPoolAllocator.h.

Macro Definition Documentation

◆ BT_DEFAULT_MAX_POOLS

#define BT_DEFAULT_MAX_POOLS   16

Definition at line 30 of file btGenericPoolAllocator.h.

Referenced by btGenericPoolAllocator::push_new_pool().

◆ BT_UINT_MAX

Function Documentation

◆ btPoolAlloc()

void * btPoolAlloc ( size_t size)

Definition at line 249 of file btGenericPoolAllocator.cpp.

References g_main_allocator, and size().

Referenced by btPoolRealloc().

◆ btPoolFree()

void btPoolFree ( void * ptr)

Definition at line 263 of file btGenericPoolAllocator.cpp.

References g_main_allocator, and ptr.

Referenced by btPoolRealloc().

◆ btPoolRealloc()

void * btPoolRealloc ( void * ptr,
size_t oldsize,
size_t newsize )

Definition at line 254 of file btGenericPoolAllocator.cpp.

References btPoolAlloc(), btPoolFree(), and ptr.