| 60 | * containing the corresponding physical memory address and available size. |
| 61 | */ |
| 62 | struct Block { |
| 63 | // the start of block |
| 64 | char* data; |
| 65 | // number of bytes available at data |
| 66 | uint64_t size; |
| 67 | |
| 68 | Block() : data(nullptr), size(0) {} |
| 69 | Block(char* data, uint64_t size) : data(data), size(size) {} |
| 70 | Block(const Block& block) = default; |
| 71 | ~Block() = default; |
| 72 | }; |
| 73 | |
| 74 | /** |
| 75 | * Get the allocated block object. |
no outgoing calls
no test coverage detected