Go to the documentation of this file.
155 for (
int32 i = 0; i < blockCount - 1; ++i)
162 last->
next =
nullptr;
212 memset(p, 0xfd, blockSize);
void Free(void *p, int32 size)
Free memory. This will use b2Free if the size is larger than b2_maxBlockSize.
uint8 values[b2_maxBlockSize+1]
void * b2Alloc(int32 size)
Implement this function to use your own memory allocator.
static const int32 b2_blockSizes[b2_blockSizeCount]
void * Allocate(int32 size)
Allocate memory. This will use b2Alloc if the size is larger than b2_maxBlockSize.
static const int32 b2_maxBlockSize
static const int32 b2_chunkArrayIncrement
static const int32 b2_chunkSize
void b2Free(void *mem)
If you implement b2Alloc, you should also implement this function.
b2Block * m_freeLists[b2_blockSizeCount]
const int32 b2_blockSizeCount
static const b2SizeMap b2_sizeMap
mvsim
Author(s):
autogenerated on Wed May 28 2025 02:13:06