| 24 | |
| 25 | |
| 26 | char * AnyHeapAllocator::impl_allocateIterator ( uint64_t size, const char * name, const LineInfo * info ) { |
| 27 | char * data = impl_allocate(size + 16); |
| 28 | if ( !data ) return nullptr; |
| 29 | *((uint64_t *)data) = size; |
| 30 | mark_comment(data, name); |
| 31 | if ( info ) mark_location(data,info); |
| 32 | return (data + 16); |
| 33 | } |
| 34 | |
| 35 | void AnyHeapAllocator::impl_freeIterator ( char * ptr ) { |
| 36 | ptr -= 16; |
no test coverage detected