| 87 | } |
| 88 | |
| 89 | ChunkPrefix* FindPrefix(void* user_ptr) { |
| 90 | ChunkPrefix* cp = reinterpret_cast<ChunkPrefix*>(user_ptr) - 1; |
| 91 | return reinterpret_cast<ChunkPrefix*>(cp->chunk_ptr); |
| 92 | } |
| 93 | } // namespace |
| 94 | |
| 95 | void* PoolAllocator::AllocateRaw(size_t alignment, size_t num_bytes) { |