MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / impl_allocateIterator

Method impl_allocateIterator

src/simulate/heap.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 1

allocateIteratorFunction · 0.80

Calls 3

impl_allocateFunction · 0.85
mark_locationFunction · 0.85
mark_commentFunction · 0.50

Tested by

no test coverage detected