| 143 | } |
| 144 | |
| 145 | bool Allocator::validMemoryAccess(uint8* ptr) |
| 146 | { |
| 147 | bool found = false; |
| 148 | |
| 149 | for (auto b : allocatedBlocks) |
| 150 | found |= b->contains(ptr); |
| 151 | |
| 152 | return found; |
| 153 | } |
| 154 | |
| 155 | Allocator::Block::Block(size_t numBytes_): |
| 156 | numBytes(numBytes_) |
no test coverage detected