| 52 | } |
| 53 | |
| 54 | AllocHeader* |
| 55 | AllocHeader::prev_adjacent() { |
| 56 | AllocHeader* result = NULL; |
| 57 | if (prev_size_) { |
| 58 | unsigned char* self = reinterpret_cast<unsigned char*>(this); |
| 59 | unsigned char* prev_buffer_start = self - prev_size_; |
| 60 | unsigned char* past_alloc = prev_buffer_start - sizeof(AllocHeader); |
| 61 | result = reinterpret_cast<AllocHeader*>(past_alloc); |
| 62 | } |
| 63 | return result; |
| 64 | } |
| 65 | |
| 66 | void |
| 67 | AllocHeader::allocate(size_t size) { |
no outgoing calls
no test coverage detected