19 if (!b)
return nullptr;
32 bool Ready() {
return first !=
nullptr; }
37 if (last) last->
next = blk;
38 if (!first) first = blk;
78 for (
auto b = first; b; b = next)
void InsertAfter(MemBlock *b, MemBlock *n)
void CoalesceRight(MemBlock *b)
void Deallocate(const MemChunk &chunk)
void InsertBefore(MemBlock *b, MemBlock *p)
void DelBlock(MemBlock *b)
void AddBlock(MemBlock *blk)
bool Allocate(MemChunk &chunk, u32 size, int align)
static MemBlock * Create(u8 *base, u32 size)