wavelength 1.0.0
Loading...
Searching...
No Matches
FreeBlock.h
Go to the documentation of this file.
1#pragma once
2
9class FreeBlock {
10public:
16 int *EndAddr() {
17 return reinterpret_cast<int *>(this) + mSizeWords;
18 }
19
27 bool Coalesce(FreeBlock *next);
28
29 int mSizeWords;
31};
Free block of a Heap, a node of the heap's free list in address order.
Definition heap.h:10
int mSizeWords
Definition heap.h:22
bool Coalesce(FreeBlock *next)
Absorb the next free run when it starts where this run ends.
FreeBlock * mNext
Definition heap.h:23
int * EndAddr()
Report the word after the run.
Definition FreeBlock.h:16