| 96 | } |
| 97 | |
| 98 | heap_offset offset_from_node(const heap_node* ptr) { |
| 99 | return static_cast<heap_offset>( |
| 100 | static_cast<size_t>(reinterpret_cast<const char*>(ptr) - heap) / |
| 101 | sizeof(heap_node)); |
| 102 | } |
| 103 | |
| 104 | // Return a pointer to the first address, 'A', in `heap` that can actually be |
| 105 | // used to represent a heap_node. 'A' must be aligned so that |
no outgoing calls
no test coverage detected