18 #ifndef B2_TRACKED_BLOCK_H
19 #define B2_TRACKED_BLOCK_H
21 #include <Box2D/Common/b2IntrusiveList.h>
25 const int32 b2_mallocAlignment = 32;
55 static void Free(
void *memory);
77 void Free(
void *memory);
92 #endif // B2_TRACKED_BLOCK_H
void * Allocate(uint32 size)
Allocate a block of size bytes using b2TrackedBlock::Allocate().
Definition: b2TrackedBlock.cpp:91
void FreeAll()
Free all allocated blocks.
Definition: b2TrackedBlock.cpp:105
b2TrackedBlockAllocator()
Initialize.
Definition: b2TrackedBlock.h:66
static void * Allocate(uint32 size)
Definition: b2TrackedBlock.cpp:53
Definition: b2IntrusiveList.h:272
void * GetMemory() const
Get the allocated memory associated with this block.
Definition: b2TrackedBlock.cpp:33
static b2TrackedBlock * GetFromMemory(void *memory)
Definition: b2TrackedBlock.cpp:66
Allocated block of memory that can be tracked in a b2IntrusiveList.
Definition: b2TrackedBlock.h:28
~b2TrackedBlockAllocator()
Free all allocated blocks.
Definition: b2TrackedBlock.h:68
static void Free(void *memory)
Free a block of memory returned by b2TrackedBlock::Allocate()
Definition: b2TrackedBlock.cpp:77
Allocator of blocks which are tracked in a list.
Definition: b2TrackedBlock.h:62
void Free(void *memory)
Free a block returned by Allocate().
Definition: b2TrackedBlock.cpp:99