Returns the size of the previous free block. The size is stored in the last 4 bytes of the free block, e.g. 4 bytes just before the current header.
| 38 | /// last 4 bytes of the free block, e.g. 4 bytes just before the current |
| 39 | /// header. |
| 40 | uint32_t* previousFreeSize(HashStringAllocator::Header* header) { |
| 41 | return reinterpret_cast<uint32_t*>(header) - 1; |
| 42 | } |
| 43 | |
| 44 | /// Returns the header of the previous free block or nullptr if previous block |
| 45 | /// is not free. |
no outgoing calls
no test coverage detected