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

Method impl_free

src/simulate/heap.cpp:186–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184 }
185
186 void LinearHeapAllocator::impl_free( char * ptr, uint64_t size ) {
187 totalBytesDeleted += size;
188 model.free(ptr,size);
189 }
190
191 char * LinearHeapAllocator::impl_reallocate ( char * ptr, uint64_t oldSize, uint64_t newSize ) {
192 if ( limit==0 || model.bytesAllocated()+newSize-oldSize<=limit ) {

Callers 1

freeFunction · 0.80

Calls 1

freeMethod · 0.45

Tested by

no test coverage detected