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

Function freeString

include/daScript/simulate/simulate.h:408–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406 }
407
408 __forceinline bool freeString ( char * ptr, uint64_t length, const LineInfo * at, bool tempString = false ) {
409 uint64_t size = length + 1;
410 size = (size + 15) & ~15;
411 if (stringHeap->isOwnPtr(ptr, size)) {
412 if ( instrumentAllocations ) onFreeString(ptr, tempString, at ? *at : LineInfo());
413 stringHeap->impl_freeString(ptr, length);
414 return true;
415 }
416 return false;
417 }
418
419 __forceinline void freeTempString ( char * ptr, const LineInfo * at ) {
420 if ( stringHeap->isIntern() ) return;

Callers 1

freeTempStringFunction · 0.85

Calls 3

impl_freeStringMethod · 0.80
LineInfoFunction · 0.70
isOwnPtrMethod · 0.45

Tested by

no test coverage detected